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 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. 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]; 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? 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 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 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 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? 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 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. 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..... 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
Archived
This topic is now archived and is closed to further replies.