Hello PHP fanatics,
The browser shows
Warning: mysql_numrows() expects parameter 1 to be resource, array given in C:\xampp\htdocs\a\Student_Home.php on line 13
here is the line 13...
the LINE 5 is the LINE 13.
include 'Connect.php';
$student_id = htmlentities($_REQUEST['id'], ENT_QUOTES);
$result = mysql_query("SELECT * FROM student_information where student_id='$_GET[id]'");
$data = mysql_fetch_array($result);
$numRows = mysql_numrows($data);
$i = 0;
Please advise what is wrong.
Kindly edit my codes.