multidimensional array
| From: | Rodrigo Peres | Date: | Fri, 19 Apr 2002 14:13:36 +0000 |
| Subject: | multidimensional array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93704@lists.php.net to get a copy of this message | ||
Hi list,
In order to avoid many left joins I took an aproach that I didn't know if it's good, but I couldn't figure out another way. If my cliente has 10 phone numbers I buld an array, serialize it and store in database, so I didn't have to create another table. The problem is now I need to migrate the data to this format, how can I select the multiple data and put in multidimensional array at runtime to store again. for example I need to put all fileds with graduation and all fields with discipline with equal id in array named school serialize it and after insert in another table.
Thank's
Rodrigo