wmguk Posted March 31, 2008 Share Posted March 31, 2008 This appears to be the section of script thats gone wrong? it all looks right though if ($status == "Accepted"); { echo "Accepted!"; } elseif ($status == "Declined"); { echo "Declined!"; } else { //OTHER CODE } Link to comment https://forums.phpfreaks.com/topic/98732-parse-error-syntax-error-unexpected-t_elseif-in-varwwwvhostsmmmmcouk/ Share on other sites More sharing options...
sstangle73 Posted March 31, 2008 Share Posted March 31, 2008 isnt the correct way <?php if ($status == "Accepted") { echo "Accepted!"; } elseif ($status == "Declined") { echo "Declined!"; } else { ?> without the ;s? Link to comment https://forums.phpfreaks.com/topic/98732-parse-error-syntax-error-unexpected-t_elseif-in-varwwwvhostsmmmmcouk/#findComment-505237 Share on other sites More sharing options...
wmguk Posted March 31, 2008 Author Share Posted March 31, 2008 Doh! you just beat me to it... extra ; all over the place.. thank you for being so quick Link to comment https://forums.phpfreaks.com/topic/98732-parse-error-syntax-error-unexpected-t_elseif-in-varwwwvhostsmmmmcouk/#findComment-505239 Share on other sites More sharing options...
sstangle73 Posted March 31, 2008 Share Posted March 31, 2008 haha np i always hate that 2 extra chars throw off everything sooo much Link to comment https://forums.phpfreaks.com/topic/98732-parse-error-syntax-error-unexpected-t_elseif-in-varwwwvhostsmmmmcouk/#findComment-505241 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.