Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $link = mysql_connect("localhost", "mysql_user", "mysql_password");
- mysql_select_db("mydatabase", $link);
- $result = mysql_query("SELECT * FROM mytable", $link);
- $num_rows = mysql_num_rows($result);
- echo "$num_rows Rows\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement