note 47601 deleted from function.array-keys by sean

From: Date: Mon, 22 Nov 2004 16:01:34 +0000
Subject: note 47601 deleted from function.array-keys by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80879@lists.php.net to get a copy of this message
Note Submitter: jackda at gmail ---- Hello, Bonjour à tous et à toutes! I use this code to build my sqlstr: [php]<? $sql = "INSERT INTO table ('"; $sql .= implode("','", array_keys($array)); $sql .= "') VALUES ('"; $sql .= implode("','", array_values($array)); $sql .= "')"; ?>[/php] My $devis array contains two fields that are not in table. Query seems to work as it SEEMS to increment the next auto index as I echo mysql_insert_id after quering. But it does not insert anything into table I need to know how to drop an array field! Thanks! Peace!

« previous php.notes (#80879) next »