I dont get this error:
Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\learner\userpref\takeanswers.php on line 8
<?php $ID=$_REQUEST['ID']; $sql="SELECT * FROM `questions` WHERE ID='$ID'"; $result = mysqli_query($cxn, $sql); if($do){ $i=0; $row = mysqli_fetch_assoc($result) $ga1=$_REQUEST['ga1']; if($ga1 == $row['']){$i++ } echo $i; } ?>
add a semi colon like at the end of the following statement:
$row = mysqli_fetch_assoc($result);
When you read error messages like the one you posted and they tell you a line number, the error is usually right before that line.
Please use thread titles that are more descriptive than "need help".
In this case, examine this line:
$row = mysqli_fetch_assoc($result)
Can you find the missing semi-colon?
P.S.: If you can, it implies that it was not missing :p
ohh yea lol