Can someone explain me what it's wrong with that part of code?
$count_query_v1 = 'COUNT user_id FROM stiri WHERE user_id = '.$_SESSION["user"]["nume"].'';
$answer = mysql_query($count_query_v1) or die(mysql_error());
echo $answer;
Return me that error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COUNT user_id FROM stiri WHERE user_id = John' at line 1