Uncaught error call to undefined function mysql_num_rows()
Fatal error: Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in - how to solve it?
Example
<?php
$link = mysql_connect("localhost", "user", "password", "database");
/* check connection */
if (!$link) {
die ('could not connect: ' . mysql_error());
}
else {
printf("name to find " .$_POST["name"]."<br />");
$name_search_sql="SELECT * FROM tbl_guests WHERE guestname = '".$_POST['name']."'";
$name_search_res=mysql_query($name_search_sql) or die(mysql_error($mysql));
if (mysql_num_row($name_search_res) < 1) {
printf("noname");
}
else {
while ($new = mysql_fetch_array($name_search_res)) {
$new_name=$new['guest_name'];
printf("name: ".$new_name);
}
}
/* close connection */
mysql_close($link);
}
?>
I have this error Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in - how to solve it?
mysql_num_rows
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in - php mysqli
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.