darkfreaks Posted August 6, 2007 Share Posted August 6, 2007 image not showing up <?php <img src=\"" . SURL . "/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?> any ideas let me know? thanks! ??? Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/ Share on other sites More sharing options...
phpQuestioner Posted August 6, 2007 Share Posted August 6, 2007 what is the "SURL" for; is that supposed to be $SURL? Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316503 Share on other sites More sharing options...
darkfreaks Posted August 6, 2007 Author Share Posted August 6, 2007 im not sure myself its not defined anywhere Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316504 Share on other sites More sharing options...
phpQuestioner Posted August 6, 2007 Share Posted August 6, 2007 you may have to define it like: <?php $SURL="http://www.yourdomain.com"; <img src="" . $SURL . "/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\"> ?> try that and see if it helps....... Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316505 Share on other sites More sharing options...
darkfreaks Posted August 6, 2007 Author Share Posted August 6, 2007 went into the language file and put <?php define("SURL","http://wiccan-gathering.com"); ?> still shows up as red x Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316510 Share on other sites More sharing options...
tibberous Posted August 6, 2007 Share Posted August 6, 2007 The whole thing is pretty messed up. It's in a PHP tag so it needs to be echo'ed. echo "<img src="" . SURL . "/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?> The double quote for src needs escaped. echo "<img src=\"" . SURL . "/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?> If you don't know what SURL is, delete it, and just make sure the path your left with, /images/user/image/ is a real path. echo "<img src=\"/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?> Fix some more syntax errors... echo "<img src=\"/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">"; ?> Use single quotes to make it easier to read... <?php echo "<img src='/images/user/image/" . $row['name'] . "' alt='" . $row['caption'] . "'>"; ?> Try that. Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316513 Share on other sites More sharing options...
phpQuestioner Posted August 6, 2007 Share Posted August 6, 2007 This is what I do........ <?php $SURL="http://www.yourdomain.com"; //mysql connect //mysql db select $results = // add query here while($r=mysql_fetch_array($results)) { $mypic=$r["name"]; echo "<img src=\"$SURL/pics/$mypic\">"; } ?> Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316515 Share on other sites More sharing options...
darkfreaks Posted August 6, 2007 Author Share Posted August 6, 2007 still not showing up hmmm Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316518 Share on other sites More sharing options...
tibberous Posted August 6, 2007 Share Posted August 6, 2007 Does http://wiccan-gathering.com/images/user/image/ exist? Are there pictures in it? Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316520 Share on other sites More sharing options...
darkfreaks Posted August 6, 2007 Author Share Posted August 6, 2007 yes thats correct it works in firefox just not IE Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316521 Share on other sites More sharing options...
darkfreaks Posted August 6, 2007 Author Share Posted August 6, 2007 i stand corrected it doesnt show up in any browser Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316522 Share on other sites More sharing options...
phpQuestioner Posted August 6, 2007 Share Posted August 6, 2007 Is this code coming from some type of Pre-Defined Blogging Framework, because if it is; you probably would need to consult with the Blog designer too find out were the heck the SURL is coming from. Link to comment https://forums.phpfreaks.com/topic/63496-solved-image-not-showing-up-in-gallery/#findComment-316524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.