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; ?> 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. 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 Link to comment https://forums.phpfreaks.com/topic/239130-unexpected-t_variable/#findComment-1228627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.