Firefox 3
Quick navigation:

ptb_delete

Deletes records from the database contained by $filename placed in $location upon given $condition.

Syntax

ptb_delete($filename, $location, $condition);

Syntax description

$filename
name of file containing the database
$location
location of $filename; can be:
G
globally defined (in ptb_ini.php) directory
L
local directory (ie. the same where script calling ptb_connect is placed)
<path>
other, defined directory, eg. /samples/db (no trailing slash)
F
filename (ie. absolute or relative path without DOCUMENT_ROOT dependency)
$condition
condition upon which record(s) should be deleted

Return

This function returns true on success and null (=false) on failure. Please notice that it returns true also when no changes has been made to the $filename.

Sample(s)

ptb_delete('book.php', 'L', "'author' == 'Agatha Christie'");