Accurax Posted March 8, 2007 Share Posted March 8, 2007 Any one got an idea what this error message is trying to tell me? Parse error: parse error, unexpected $end in C:\wamp\www\mysite.php on line 332 Thanks guys Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 8, 2007 Share Posted March 8, 2007 1st of all well done for using wamp check ike 332 for any unexpted s$end PHP & MySQL are so easy to troubleshoot try looking on line 332 it really does lmit you to a fwwrong characters maybe your variable was $send i dnt know but thereyou are check if anything s wrong or if u havn't created $end Quote Link to comment Share on other sites More sharing options...
Accurax Posted March 8, 2007 Author Share Posted March 8, 2007 Do you think im stupid? ... do not patronise me Line 332 happens to be the last line of my page..... and therefore it is an error that is dropping down from above, as if id post here wirthout trying to figure it out myself. All im looking for is an explanation of what the error means. I have no variable called $end ................... and cannot see any obvious errors in my code .....but then i dot really know what im looking for as this error is not one i have seen before...... so if anyone can tell me what this error means i would be very very gratefull. ps... sorry to be harsh, but you didnt read my question, or come anywhere near actually answering it, but thanks for replying anyway Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 8, 2007 Share Posted March 8, 2007 post first 5 and last 5 lines Quote Link to comment Share on other sites More sharing options...
Accurax Posted March 8, 2007 Author Share Posted March 8, 2007 sure no problem, heres the first 5 lines <?php // Line 1 session_start(); include("../connect.inc"); if ( $_SESSION['login'] != "true" ) and here's the last 5 lines if (strcmp($row['rock'], 'on') == 0) { echo "Rock."; } ?> // Line 312 I've shown you the last 5 lines of php, as the lines the error are pointing at are just cosing xhtml tags, and of no real help Quote Link to comment Share on other sites More sharing options...
Accurax Posted March 8, 2007 Author Share Posted March 8, 2007 and you still havnt tried to actually answer my question.... i dont want you to "fix this" for me .... i just want an explanation of the error message. Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 8, 2007 Share Posted March 8, 2007 ok hold ctrl + f and search for the error variable as that is fine php, quite might i add, lol.. errm if that finds nothng post the whole thing it'll tae a while tho ;( Quote Link to comment Share on other sites More sharing options...
Accurax Posted March 8, 2007 Author Share Posted March 8, 2007 the variable $end is not defined... does not exist, has quite simply never been created ...... i dont think its trying to tell me that there is a problem with a variable called $end. I think it's simpler than that, ill go and check the php manual and google around see if i can get some info. oh, and thanks for the compliment. Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 8, 2007 Share Posted March 8, 2007 Strange error: $*** Is a variable. $end os a variable For a variable to exist it must be created, so how on earth are we getting a non existant variable please post your php so i can look through it Use [COD'E] [/CO'DE] Lines excluding quotes Quote Link to comment Share on other sites More sharing options...
Accurax Posted March 8, 2007 Author Share Posted March 8, 2007 *Accurax falls over and dies laughing at himself read the first reply to this post: http://www.phpbuilder.com/board/showthread.php?t=10316154 Was all i needed to realise that i had in fact missed a curly brace. But, without knowing what causes the error message id have never fixed it, no matter how stupid it was. Thanks for the help Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 8, 2007 Share Posted March 8, 2007 LOL was the errr fatal? HAHA LMAO 'FATAL' "Falls dead", "Desnt display page"... Loooools.. Quote Link to comment 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.