autoExecute() build automatically an insert or an update sql query and call prepare() and execute() with it. The sql query is build by using autoPrepare(). To call autoExecute, you need only an assoc (key => value) where keys are fields names and values are corresponding values of these fields.
Parameter
string $table
name of the table
array $fields_values
assoc (key => value), keys are fields names, values are values of these fields
integer $mode
type of query to make (DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE)
string $where
in case of update queries, this string will be put after the WHERE statement
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?