note 87473 added to function.mysql-fetch-array
| From: | info at o08 dot com | Date: | Sat, 06 Dec 2008 14:33:17 +0000 |
| Subject: | note 87473 added to function.mysql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-147751@lists.php.net to get a copy of this message | ||
As opposite of mysql_fetch_array:
function mysql_insert_array ($my_table, $my_array) {
$keys = array_keys($my_array);
$values = array_values($my_array);
$sql = 'INSERT INTO ' . $my_table . '(' . implode(',', $keys) .
') VALUES ("' . implode('","', $values) . '")';
return(mysql_query($sql));
}
#http://www.weberdev.com/get_example-4493.html
----
Server IP: 222.73.227.205
Probable Submitter: 222.221.68.223
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php
Edit -- https://master.php.net/note/edit/87473
Del: integrated -- https://master.php.net/note/delete/87473/integrated
Del: useless -- https://master.php.net/note/delete/87473/useless
Del: bad code -- https://master.php.net/note/delete/87473/bad+code
Del: spam -- https://master.php.net/note/delete/87473/spam
Del: non-english -- https://master.php.net/note/delete/87473/non-english
Del: in docs -- https://master.php.net/note/delete/87473/in+docs
Del: other reasons-- https://master.php.net/note/delete/87473
Reject -- https://master.php.net/note/reject/87473
Search -- https://master.php.net/manage/user-notes.php