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.. Quote 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)) { Quote 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 Quote 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. Quote 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? Quote 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) { Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/190154-unexpected-end/#findComment-1003289 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.