Need help with arrays PLEASE!!!

From: Date: Tue, 08 Apr 2003 22:07:01 +0000
Subject: Need help with arrays PLEASE!!!
Groups: php.general 
Request: Send a blank email to php-general+get-142961@lists.php.net to get a copy of this message
I'mpulling multiple rows out of a MySQL database and inserting them into several arrays. After that I want to put all the arrays into one multi-dimensional array. Here is the code: while($row = mysql_fetch_row($mysql_result)) { $invoicenum[] = $row[0]; $name[] = $row[1]; $address[] = $row[2]; $city[] = $row[3]; $state[] = $row[4]; $zip[] = $row[5]; } I want to put $invoicenum[], $name[], $address[], $city[], $state[], $zip[] into 1 multi-dimensional array. Can anyone help me with this?

« previous php.general (#142961) next »