Page 1 of 1

Count rows

Posted: Thu May 08, 2003 11:35 am
by ampersand
I've made a database so I can keep track of what all my cd's contains, but I need a counter function so I can see how many cd's there are total.

Can anyone help me please ?


Thanks in advance
ampersand

Posted: Thu May 08, 2003 11:53 am
by volka
Letting sql do the work might be the easiest way.
http://www.mysql.com/doc/en/Counting_rows.html
If you're going to fetch them all anyway (again for mysql): mysql_num_rows()