TheSky Posted June 12, 2011 Share Posted June 12, 2011 hey i need a little help i get syntax error, unexpected T_VARIABLE in line $rowkills=$row['kills']; <? $sqltest = "SELECT * FROM data WHERE username='$name'"; $row=mysql_fetch_array($sqltest) $rowkills=$row['kills']; $rowdeaths=$row['deaths']; $nkills=$Kills-$rowkills; $ndeaths=$Deaths-$rowkills; ?> Quote Link to comment https://forums.phpfreaks.com/topic/239130-unexpected-t_variable/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 12, 2011 Share Posted June 12, 2011 The line before that line is missing the the ; You also don't have any mysql_query statement to execute the query. Quote Link to comment https://forums.phpfreaks.com/topic/239130-unexpected-t_variable/#findComment-1228624 Share on other sites More sharing options...
TheSky Posted June 12, 2011 Author Share Posted June 12, 2011 oh thanks didnt notice it ,mysql_query() is included thankyou Quote Link to comment https://forums.phpfreaks.com/topic/239130-unexpected-t_variable/#findComment-1228627 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.