Created
October 21, 2013 07:36
-
-
Save abdullahbutt/7079959 to your computer and use it in GitHub Desktop.
mysql_num_rows() from php.net
http://www.php.net/function.mysql-num-rows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 Rows\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment