troubleshooting Question

Getting images fetched properly

Avatar of sanchit gupta
sanchit gupta asked on
CSSDatabasesPHP
3 Comments1 Solution69 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros