leviw
03-21-2003, 06:25 PM
I'd like to make a table populated from a database query.
I'd like the table to be about 5 collums wide, and as many rows as it takes. The problem is, I dont know how to do it.
Right now I run the query and have a foreach() statement set up, which of course produces one result per run. I assume I need to do an if($i=0; $i >=4; $i++) statement to limit the width of the table, but I'm having trouble getting the syntax right.
Any suggestions would be fantastic, I'm obviously new to php but know there must be an easy way to do this. Its difficult to ask for what you want when you dont know what its called. :cross-eyed:
Thanks in advance.
I'd like the table to be about 5 collums wide, and as many rows as it takes. The problem is, I dont know how to do it.
Right now I run the query and have a foreach() statement set up, which of course produces one result per run. I assume I need to do an if($i=0; $i >=4; $i++) statement to limit the width of the table, but I'm having trouble getting the syntax right.
Any suggestions would be fantastic, I'm obviously new to php but know there must be an easy way to do this. Its difficult to ask for what you want when you dont know what its called. :cross-eyed:
Thanks in advance.