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
Sorry list, I think, I was not clear enough. I don't have errors, what I could do with this code is output a table in alphabetical order ex: A a.. ab.. B b... bc... But what I really need and I couldn't make work is, my table output one name per row and a long one singlke column, and I need a

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] multicolumn table > Hi list, > > I've tr