Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-13 Thread Richard Lynch
On Mon, July 10, 2006 2:14 am, Larry Garfield wrote: It is slightly more complicated than that, since if the value is numeric and going into a numeric field, then it's not supposed to be quoted. (MySQL generally doesn't care, but some other databases may; I'm not certain.) AFAIK, MySQL is

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-10 Thread Larry Garfield
On Friday 07 July 2006 10:03, Janet Valade wrote: Actually, it doesn't matter what the indexes are when you use implode. Implode just puts the values into a string. Here's code that will work. $field_array = array_keys($fields_form); $fields = implode(,,$field_array); $values =

[PHP] combine implode() and array_keys() to get a string of key names

2006-07-07 Thread Dave M G
PHP List, I've got a series of associative arrays that contain simple string values that I want to insert into my database. In each array, the names of the keys correspond to the column names in the database table. The values stored in the array are, of course, the values that I want

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-07 Thread Jochem Maas
Dave M G wrote: PHP List, I've got a series of associative arrays that contain simple string values that I want to insert into my database. In each array, the names of the keys correspond to the column names in the database table. The values stored in the array are, of course, the

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-07 Thread Dimiter Ivanov
On 7/7/06, Dave M G [EMAIL PROTECTED] wrote: PHP List, I've got a series of associative arrays that contain simple string values that I want to insert into my database. In each array, the names of the keys correspond to the column names in the database table. The values stored in the

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-07 Thread Janet Valade
Dave M G wrote: PHP List, I've got a series of associative arrays that contain simple string values that I want to insert into my database. In each array, the names of the keys correspond to the column names in the database table. The values stored in the array are, of course, the