Parse error: syntax error, unexpected '$student_id' (T_VARIABLE) in C:\xampp\htdocs\squprime\administrator\admin\studentinfo.php on line 123

studentinfo.php

$studentidResult = mysql_query("SELECT student_id FROM student ORDER BY DESC") or die(mysql_error());
            $dataid = mysql_fetch_array($studentidResult)
            $student_id = $dataid['student_id'];    


line 123: $student_id = $dataid['student_id'];              

I am still trying to figure out the errors. Anyone knows why?

Thanks in advance.

should be like this

 $dataid = mysql_fetch_array($studentidResult);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.