autoPrepare() build automaticaly 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