ptb_delField
Deletes $fieldname from the $filename.–You probably want to use this function only in some sort of database managment script.
Syntax
ptb_delField($filename, $location, $fieldname);
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)
- $fieldname
- field to be deleted
Return
This function returns true on success and null (=false) on failure.
Sample(s)
Delete field french from the christie.csv file:
ptb_delField('christie.csv', 'G', 'french');