getting multiple columns per row from databse query

2001-11-15 Thread chip . wiegand
I have a database that is names and addresses. I want to make a web page that will display those names and addresses in a table with 4 columns per row, as many rows as necessary. The little if statement below works to make 2 columns, but when I change the number to 3 or higher it no longer

Re: getting multiple columns per row from databse query

2001-11-15 Thread Bill Adams
Try: $i++; if( $i % 3 == 0 ){ echo /tr\ntr\n; } b. mysql [EMAIL PROTECTED] wrote: I have a database that is names and addresses. I want to make a web page that will display those names and addresses in a table with 4 columns per row, as many rows as necessary. The little if statement

Re: getting multiple columns per row from databse query

2001-11-15 Thread chip . wiegand
Thanks Bill, That works great. Much appreciative, Chip Bill Adams [EMAIL PROTECTED]@tqs.com on 11/15/2001 10:31:45 PM Internet mail from: Sent by: [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: getting multiple columns per row from databse query Try