hi all, 😃
i'm a new at php,,
i have students and they should log into my system,
and then they should solve mcq (multiple choice question), and i want to track their progress , so the code must be
if value of the radio button is correct
then the query is
[code]mysql_query("UPDATE solve SET result='1' WHERE student_id =???'");[/code]
and for the display:
$result=mysql_query("SELECT result FROM solve, $con);
while($res=mysql_fetch_array($result)) {
echo "<tr><td>" . $res['result'] ."</td></tr>";
-----------
student_id = the user name of student or his/her id (unique)
solve = is a table which has students_id , question# ,sheet# and result
result= field which must be 0 or 1 ,
0 for wrong , 1 for correct
so,, the question is what should i put in ???
i mean how can i pass the student id variable after he logged in,,
i already used form for the log in , and post method with an action
but what i need here is to use that variable again,,
any clue
...😃