Function DatabaseConnector->query_delete

Definitions

sources/database.php

  • Deletes rows from the specified table, that match the specified conditions (if any). It may be limited to a row range (it is likely, only a maximum, of 1, will be used, if any kind of range at all).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$table string required parameter N/A N/A The table name
$where_map array [] N/A N/A The WHERE map [will all be ANDed together]
$end string Blank (empty string) N/A N/A Something to tack onto the end of the statement
$max ?integer Null N/A N/A The maximum number of rows to delete (null: no limit)
$start integer 0 N/A N/A The starting row to delete
$fail_ok boolean False N/A N/A Whether to allow failure (outputting a message instead of exiting completely)