asked on
<?php
ob_start();
include ("./inc/header.inc.php");
$userid="";
$dblinks = DB::query('SELECT * FROM links WHERE user_id!=:userid AND category = "funny" ORDER BY id DESC', array(':userid'=>$userid));
$links = "";
$time = "";
foreach ($dblinks as $u) {
$links .= $u['image'].$u['title'].'<br>'.'<a href="'.$u['url'].'">'.$u['url'].'</a><br>Submitted at '.$u['posted_at'].'<hr>' ;}
$time .= 'Submitted at'.$u['posted_at'];
?>
<div class="links">
<?php echo $links; ?>
[embed=file 1150320][embed=file 1150321][embed=file 1150322]
</div>
Captureout.PNGPHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
ASKER