[PHP] Building associative arrays

2003-10-03 Thread chris . neale
I'm stuck. I'm trying to build an associative array from a database result. How can I assign a new key and value pair eg mysql_fetch_row etc { dbRowCol1 = myarray(key) dbRowCol2 = myarray(value) } You get the general idea. Can't find any examples. I'm trying to lookup a key and retrieve

Re: [PHP] Building associative arrays

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 10:22:55AM +0100, [EMAIL PROTECTED] wrote: : : I'm trying to build an associative array from a database result. How can I : assign a new key and value pair : : eg : : mysql_fetch_row etc : { : dbRowCol1 = myarray(key) : dbRowCol2 = myarray(value) : } : : You get the

RE: [PHP] Building associative arrays

2003-10-03 Thread chris . neale
Perfect. Thanks for that. I can't think associative arrays first thing in the morning. Seems a bit clearer now... C -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: 03 October 2003 12:07 To: [EMAIL PROTECTED] Subject: Re: [PHP] Building associative arrays On Fri, Oct