Link to home
Start Free TrialLog in
Avatar of sanchit gupta
sanchit gupta

asked on

Getting images fetched properly

There is been an error in images uploading. i want to fetch the image instead of just its name. I also want to style it similar to what is there in the picture embedded.
<?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>

Open in new window

Captureout.PNG
Capturemyoutput.PNG
db.PNG
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sanchit gupta
sanchit gupta

ASKER

no need of creating a gig project here only some changes are needed in my code. @ray
abandoned question - hopefully it was taken up in Gigs