mySQL table query - only returning first row?

Codes here !

Moderators: macek, egami, gesf

Post Reply
NigelRen
php-forum Fan User
php-forum Fan User
Posts: 578
Joined: Fri Aug 05, 2011 9:53 am

Re: mySQL table query - only returning first row?

Post by NigelRen » Fri Sep 21, 2012 12:33 pm

After calling mysql_query, you should use something like...

Code: Select all

while ($row_Booking_System = mysql_fetch_assoc($Booking_System)) {
// Do something for each row
}

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests