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" />'; } ?> Quote 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) Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.