RE: [PHP] Table trouble

2003-07-07 Thread Ralph
> fetchinto? > On Mon, 2003-07-07 at 14:42, phpu wrote: > > 10x but i am new to php and i do not know how to dump all of the results > > into an array can you help me with this one please? $sql="select * from cate order by name asc"; $resurs=mysql_query($sql); while ($row=mysql_fetch_array($r

RE: [PHP] Table trouble

2003-07-07 Thread Ralph
Here's a tutorial on doing this: http://codewalkers.com/tutorials.php?show=15 -Original Message- From: phpu [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 3:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Table trouble Hello I need help. I'm querying a database then printing the resu

Re: [PHP] Table trouble

2003-07-07 Thread phpu
inal Message - From: "Michael A Smith" <[EMAIL PROTECTED]> To: "phpu" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 1:43 AM Subject: Re: [PHP] Table trouble > fetchinto? > On Mon, 2003-07-07 at 14:42, phpu wrote: > > 10x but i am new to php and i

Re: [PHP] Table trouble

2003-07-07 Thread phpu
Tuesday, July 08, 2003 1:19 AM Subject: Re: [PHP] Table trouble > I'd just dump all of the results into an array and do something like this: > > echo "\n"; > for($i=0; $i { > echo "\t\n"; > for($j=0; $j<2; $j++) > { > echo &quo

Re: [PHP] Table trouble

2003-07-07 Thread Jeff Harris
On Jul 8, 2003, "phpu" claimed that: |Hello |I need help. |I'm querying a database then printing the results in a table. I want the result to be in a table with 2 columns per row. |something like that | | |-- row 1 -- r

Re: [PHP] Table trouble

2003-07-07 Thread Kevin Stone
I'd just dump all of the results into an array and do something like this: echo "\n"; for($i=0; $i\n"; for($j=0; $j<2; $j++) { echo "\t\t".$array[$i]."\n"; $i++; } echo "\t\n"; } echo "\n"; On odd numbered arrays you'll end up with an empty cell. Most browsers wil