Jump to content


Photo

Returning the number of entries in a table.


  • Please log in to reply
2 replies to this topic

#1 Metonmuris

Metonmuris
  • Members
  • Pip
  • Newbie
  • 5 posts

Posted 21 December 2003 - 07:50 AM

How do you get the total number of entries from a Mysql table.

Im not totally sure on the SQL to do such a thing.

#2 PHPcadet

PHPcadet
  • Members
  • PipPip
  • Member
  • 14 posts
  • LocationPlant City, Florida

Posted 21 December 2003 - 02:49 PM

By entries do you mean the number of rows in the table? If so use the mysql_num_rows() function.
If builders built buildings the way programmers write programs, then the first termite to come along would destroy civilization -- Anonymous

#3 Metonmuris

Metonmuris
  • Members
  • Pip
  • Newbie
  • 5 posts

Posted 22 December 2003 - 04:14 AM

cool, thanks :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users