|
-
Jun 27th, 2002, 08:52 AM
#1
Thread Starter
Fanatic Member
Number of entries
Is there a way, short looping through the DB, to find out how many entries there are?
Tanks
-
Jun 27th, 2002, 09:02 AM
#2
PowerPoster
I assume you mean rows in a recordset...?
You might be able to get it from the table properties but the easiest way would be to do
PHP Code:
$rows_result = mysql_query('SELECT * FROM table');
$num_rows = mysql_num_rows($rows_result);
print $num_rows;
-
Jun 27th, 2002, 11:46 AM
#3
Thread Starter
Fanatic Member
Doh, why didnt I think off that.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|