adchico Posted January 8, 2008 Share Posted January 8, 2008 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" />'; } ?> Link to comment https://forums.phpfreaks.com/topic/84974-i-cant-show-image-from-a-link-saved-in-my-db/ Share on other sites More sharing options...
sKunKbad Posted January 8, 2008 Share Posted January 8, 2008 Change your if statement if($userInfo->pic !== NULL) Link to comment https://forums.phpfreaks.com/topic/84974-i-cant-show-image-from-a-link-saved-in-my-db/#findComment-433340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.