Answers for "mysql rowcount php"

PHP
-1

mysql rowcount php

<?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 Zeilen\n";

?>
Posted by: Guest on November-15-2020

Browse Popular Code Answers by Language