fetch multiple rows from db

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
manRay
Forum Commoner
Posts: 78
Joined: Mon Feb 09, 2009 1:57 pm

fetch multiple rows from db

Post by manRay »

I need to retrieve multiple rows from a database. I know that the mysql_fetch_row() only gets one row, so than how do I get more than one?
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: fetch multiple rows from db

Post by aravona »

Have you tried using a while loop ?
manRay
Forum Commoner
Posts: 78
Joined: Mon Feb 09, 2009 1:57 pm

Re: fetch multiple rows from db

Post by manRay »

Thanks!
Post Reply