Is there a way to?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pezmc
Forum Commoner
Posts: 53
Joined: Mon Nov 06, 2006 2:15 pm

Is there a way to?

Post by Pezmc »

Is there a way to count the ammount of rows in a table called users?
User avatar
Obadiah
Forum Regular
Posts: 580
Joined: Mon Jul 31, 2006 9:13 am
Location: Ashland, KY
Contact:

Post by Obadiah »

have you tried the

Code: Select all

mysql_num_rows()
function?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Code: Select all

SELECT COUNT(*) AS total_rows FROM `users`
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Is there a way to?

Post by alex.barylski »

Pezmc wrote:Is there a way to count the ammount of rows in a table called users?
I like your sig...thats cool...as in appearance...I'm not a gamer or treky ;)
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Re: Is there a way to?

Post by JayBird »

Hockey wrote: I like your sig...thats cool...as in appearance...I'm not a gamer or treky ;)
http://www.userbars.com
Pezmc
Forum Commoner
Posts: 53
Joined: Mon Nov 06, 2006 2:15 pm

Post by Pezmc »

Thanks i made three of them my self. Thanks for the help.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Is there a way to?

Post by RobertGonzalez »

This site is totally choking right now. Is anyone else having problems with it?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Ermm... dude that image is actually 185.3 kB 8O We'd usually ask you to remove something that large out of kindness to our 56K users :(
Post Reply