Jump to content

While Loop


Selacius

Recommended Posts

I know and have used the while($row = mysql_fetch_array($result)) {} line for a while for various things, but I am curious if there is any easy way for me to select a single row and using this while command, or any other, have it cycle through the columns of that selected row. I can hard code for each column, but when my table is 27 columns long, that is a lot of code. Any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...