HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

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

3272. Mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean given, php mysqli
Mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean given php mysqli
https://www.agernic.com/php-mysqli/mysqli_fetch_array()-expects-parameter-1-to-be-mysqli_result-boolean-given.html

1274. PHP MySQLI functions to handle MySql database
PDO layer in PHP to mange MySQL database with different data handling commands in PHP
https://www.plus2net.com/php_tutorial/mysqli.php

1269. mysqli_num_fields to get number of fields or columns in a result set returned from database
mysqli_num_fields to get number of column from resultset in PHP MYSQLI
https://www.plus2net.com/php_tutorial/mysqli_num_fields.php

1265. mysqli_fetch_field_direct to get field meta data
mysqli_fetch_field_direct to get field meta data in PHP MYSQLI
https://www.plus2net.com/php_tutorial/mysqli_fetch_field_direct.php

3273. Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in, php mysqli
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in php mysqli
https://www.agernic.com/php-mysqli/uncaught-error-call-to-undefined-function-mysql_num_rows().html

3284. PHP mysqli_query() Function - mysqli query, sql tutorial
PHP mysqli_query() Function - mysqli query sql tutorial
https://www.agernic.com/sql-tutorial/php-mysqli_query-function-database-mysqli.html

Your add here
PHP ltrim() function

PHP str_split() function

PHP htmlspecialchars_decode() function

PHP print() function

PHP explode() function

PHP wordwrap() function

PHP lcfirst() function

PHP printf() function

PHP isset() Function

PHP str_repeat() function

PHP define() function

PHP str_replace() function

PHP strstr() function

PHP htmlentities() function

PHP substr() function

PHP strcmp() function

Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in
HTML Image Align
CSS Text Bold
HTML Table Rowspan and Colspan
PHP While Loops. Tutorial While Loop
HTML button link - How to create a button style in HTML