autoPrepare() build automatically an insert or an update sql query and call prepare()with it. The sql query is build by using an ordered array containing fields names.
Parameter
string string $table
name of the table
array $table_fields
ordered array containing the fields names
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?