Jump to content

I cant show image from a link saved in my db


adchico

Recommended Posts

I checked my db and it has a value however I think theres a problem with my script

 

<?php

if ($userInfo->pic === NULL)

{

echo  '<img src= "' $userInfo->pic; '" width="160" height="136" align="absmiddle" />';

}

else

{

  echo ' <img src= "images/contact.jpg" width="160" height="136" align="absmiddle" />';

              }

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.