thegod Posted May 30, 2007 Share Posted May 30, 2007 Parse error: parse error, unexpected T_VARIABLE in rankstatus.php on line 110 this is the 2nd line is 110 i have no idea DEAD $dead= mysql_num_rows(mysql_query("SELECT username FROM user_info WHERE status = 'Dead'"))or die(mysql_error()); many thanks Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/ Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 Paste the lines above and below line 110 please. Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264647 Share on other sites More sharing options...
thegod Posted May 30, 2007 Author Share Posted May 30, 2007 /////Rankl1123467 $administrator= mysql_num_rows(mysql_query("SELECT username FROM user_info WHERE rank = 'Administrator'"))or die(mysql_error()); /////Rankl11234678 $hdo= mysql_num_rows(mysql_query("SELECT username FROM user_info WHERE rank = 'Help Desk Oparator'"))or die(mysql_error()); /////user_info DEAD $dead= mysql_num_rows(mysql_query("SELECT username FROM user_info WHERE status = 'Dead'"))or die(mysql_error()); /////TOTAL ATTEMPTS $attempts= mysql_num_rows(mysql_query("SELECT id FROM attempts WHERE outcome = 'Survived'"))or die(mysql_error()); $result11111swiss = mysql_query("SELECT money FROM swiss"); $moneyswiss = 0; while($rowswiss=mysql_fetch_array($result11111swiss)){ $moneyswiss+=$rowswiss[0]; Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264650 Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 What is DEAD for? Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264656 Share on other sites More sharing options...
thegod Posted May 30, 2007 Author Share Posted May 30, 2007 if i killed the users account so if they banned and DEAD JUST TELLIN ME what is what Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264658 Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 Put // before dead Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264663 Share on other sites More sharing options...
thegod Posted May 30, 2007 Author Share Posted May 30, 2007 do but only the back ground comes out now help me ??? please Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264672 Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 Surely that means everything worked fine, unless the code was supposed to output something? Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264675 Share on other sites More sharing options...
thegod Posted May 30, 2007 Author Share Posted May 30, 2007 yes it was Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264695 Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 Post the whole code please. Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264705 Share on other sites More sharing options...
trq Posted May 30, 2007 Share Posted May 30, 2007 thegod, please read the link in my signiture, How to ask..... Quote Link to comment https://forums.phpfreaks.com/topic/53552-parse-error-parse-error-unexpected-t_variable/#findComment-264711 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.