1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
|
<?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";
?>
|