I keep getting the following error and I was wondering on how to fix?
Fatal error: Unsupported operand types in C:\\wamp\\www\\tuto\\core\\Controller.php on
**PROBLEM YOUR FAILED TO ADDED EQUAL SIGN TO THE VARIABLE WHICH FETCH INFORMATION TO THE DATABASE **
Hell guys i tried to remove PHP - Fatal error: Unsupported operand types this error will occur during us fail to declare the variable correct so you will solve it this error by add the sign "=" Example if you try to type like this:
$sa="SELECT * FROM `anquiz` WHERE user_id = $a";
$af=mysql_query($sa);
while($cv-mysql_fetch_array($af)){
$d1=$cv['id'];
$d2=$cv['answer'];//student answer
$d4=$cv['quiz_id'];// quiz id
$d5=$cv['user_id'];// user id insert his file
$d6=$cv['time'];
you will get error of fatal unsupported operand by sign - on varible that carry the mysql_fetch_array instead of adding = Take that example` by adding that sign you will see an error