CodeMama Posted March 9, 2009 Share Posted March 9, 2009 This is breaking my page and giving me the blank page of frustration: <?php if (!empty($row->Photo1)) && file_exists("posters/HiRes/". $row->Photo1)) { cho '<img src="posters/HiRes/'. $row->Photo1 .' " width="200" height="300" border="0" style="border: 1px solid #000000">'; } ?> and it had been working, no changes on the server as far as I know but as of friday it stopped and broke the page completely to the blank page, so I figured it must be syntax? Link to comment https://forums.phpfreaks.com/topic/148625-solved-syntax-problem-need-another-set-of-eyes/ Share on other sites More sharing options...
waynew Posted March 9, 2009 Share Posted March 9, 2009 if (!empty($row->Photo1) && file_exists("posters/HiRes/". $row->Photo1)) { echo '<img src="posters/HiRes/'. $row->Photo1 .' " width="200" height="300" border="0" style="border: 1px solid #000000">'; } Try that. Link to comment https://forums.phpfreaks.com/topic/148625-solved-syntax-problem-need-another-set-of-eyes/#findComment-780472 Share on other sites More sharing options...
kickstart Posted March 9, 2009 Share Posted March 9, 2009 Hi Have you deleted the e from the start of echo? All the best Keith Link to comment https://forums.phpfreaks.com/topic/148625-solved-syntax-problem-need-another-set-of-eyes/#findComment-780479 Share on other sites More sharing options...
waynew Posted March 9, 2009 Share Posted March 9, 2009 Heh, I didn't see that. 1, you misspelled echo and 2, you added an extra right bracket where you didn't need it. Link to comment https://forums.phpfreaks.com/topic/148625-solved-syntax-problem-need-another-set-of-eyes/#findComment-780482 Share on other sites More sharing options...
CodeMama Posted March 9, 2009 Author Share Posted March 9, 2009 Thank you Thank you Link to comment https://forums.phpfreaks.com/topic/148625-solved-syntax-problem-need-another-set-of-eyes/#findComment-780491 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.