Handy MYSQL update operation
Parameters | |||
---|---|---|---|
string
|
$table |
The table name without prefix |
# |
array
|
$data = [] |
The array of data field names and values The first field/value pair will be used as condition when you do not provide the fourth argument |
# |
boolean
|
$useSlug = true |
TRUE to include the slug field or FALSE to not exclude it The fourth argument can be provided here if you want to omit this. |
# |
array
|
$condition = [] |
The condition for the UPDATE query. If you provide this,
the first field of |
# |
Returns | |
---|---|
boolean
|
Returns TRUE on success or FALSE on failure |