Answers for "mysqli_num_rows($result)"

PHP
2

mysql num rows

//number of rows retrieved from a query
<?php

$link = mysql_connect("localhost", "mysql_user", "mysql_password");
mysql_select_db("database", $link);

$result = mysql_query("SELECT * FROM table1", $link);
$num_rows = mysql_num_rows($result);

echo "$num_rows Rowsn";

?>
Posted by: Guest on November-11-2020
0

PHP mysqli_num_rows function

<?php
mysqli_num_rows($result);
?>
Posted by: Guest on June-17-2021

Browse Popular Code Answers by Language