Method: db::delete
Runs a DELETE query
Info
Syntax
db::delete($table, $where='')
Parameters
- $table (string) The table name
- $where (mixed) Either a key/value array as AND connected where clause or a simple MySQL where clause string
Return (mixed)
The number of affected rows or an error response
Example
db::delete('user', array('id' => 1));
// deletes the user with the id 1