PHP: Insert Data Into MySQL Table Using An Array [mysql] [php] [array] [INSERT]


/ Published in: PHP
Save to your folder(s)

Inserts the values of an array into a table. Also supports specifying if a specific field needs to be encoded using PASSWORD()
Parameters:
Table: Name of table to insert into
Data: array of $field->$value of new data
Password Field: Which field in the data array needs to be surrounded with PASSWORD() (optional)

URL: http://snippets.dzone.com/posts/show/4350

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.