We help IT Professionals succeed at work.
Get Started

Getting images fetched properly

sanchit gupta
on
68 Views
Last Modified: 2018-02-06
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
Comment
Watch Question
Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE