Dracolas Posted January 28, 2010 Share Posted January 28, 2010 http://www.sourcepod.com/kmgykh29-2675 Parse error: syntax error, unexpected $end in /home/a1237238/public_html/clan/addwar.php on line 110 why?.... the page was working fine before i uncommented the insert line.. Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/ Share on other sites More sharing options...
Alex Posted January 28, 2010 Share Posted January 28, 2010 Because the insert line also has this on it: if ($add_member = mysql_query($insert)) { Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003272 Share on other sites More sharing options...
Dracolas Posted January 28, 2010 Author Share Posted January 28, 2010 ok, i'm nub to php. can you tell me why that hurts and how to fix it please. TY Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003275 Share on other sites More sharing options...
Alex Posted January 28, 2010 Share Posted January 28, 2010 If you want to comment out the insertion then just move that if statement to the next line so it's not affected. Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003276 Share on other sites More sharing options...
Dracolas Posted January 28, 2010 Author Share Posted January 28, 2010 ... i want the insert to work... and i want the page to work. what can i do to make this happen? Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003282 Share on other sites More sharing options...
Alex Posted January 28, 2010 Share Posted January 28, 2010 Oh sorry. Your problem is that you're never closing the bracket opened here: if ($crank <= 4) { Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003284 Share on other sites More sharing options...
Dracolas Posted January 28, 2010 Author Share Posted January 28, 2010 figured it out...it was acctually that i wasn't closing the one that was pointed out earlier (the insert one) ty. Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003285 Share on other sites More sharing options...
Dracolas Posted January 28, 2010 Author Share Posted January 28, 2010 K well....I guess i just messed it up...i'm going to go thru it and figure out the brackets...cuz i messed up somewhere. Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.