Results 1 to 3 of 3

Thread: Number of entries

  1. #1

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734

    Exclamation Number of entries

    Is there a way, short looping through the DB, to find out how many entries there are?

    Tanks

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    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

  3. #3

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    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
  •  



Click Here to Expand Forum to Full Width