Re: [PHP] multicolumn table

2001-12-17 Thread Jeremy Peterson
Here is a script I use to create columns. I wrote this my first month phping, so it may be ugly. (Hence it may not be up to my new standards... :) Not to mention, this was designed for creating menu button which sounds different than what you do. I use it as follows: display_columns( mysql qu

Re: [PHP] multicolumn table

2001-12-17 Thread jimtronic
Try something like this... $my_array = array( "A"=>array("1","2","3"),"B"=>array("1","2","3"),"C"=>array("1","2","3")); $num_columns = 3; echo ""; foreach($my_array as $key=>$value) { echo "$key"; for($i=1;$i<=$num_columns;$i++) { echo "".$value[$i-1]."";

Re: [PHP] multicolumn table

2001-12-17 Thread Rodrigo Peres
ov > > - Original Message - > From: "Rodrigo Peres" <[EMAIL PROTECTED]> > To: "PHP" <[EMAIL PROTECTED]> > Sent: Monday, December 17, 2001 4:04 PM > Subject: [PHP] multicolumn table > > >> Hi list, >> >> I've tried f

Re: [PHP] multicolumn table

2001-12-17 Thread Andrey Hristov
try to start the sql at a prompt and post the error which mysql returns Regards, Andrey Hristov - Original Message - From: "Rodrigo Peres" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 4:04 PM Subject: [PHP] multicol

[PHP] multicolumn table

2001-12-17 Thread Rodrigo Peres
Hi list, I've tried for many times, but couldn't make a table with 3 columns and n rows This is my code, someone please, can help in make it outputs a 3 column table?? $sql = "SELECT categorias.Nome_Categoria,celebridades.CelebID,celebridades.Nome_Artistico, lcase(left(Nome_Artistico,1)) as le