Function sql_from_post
Build SQL INSERT/UPDATE statement from the $_POST associative array
Package: awl\DataUpdate
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at DataUpdate.php
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at DataUpdate.php
string |
$type |
The word "update" or something else (which implies "insert"). |
string |
$tablename |
The name of the table being updated. |
string |
$where |
What the "WHERE ..." clause needs to be for an UPDATE statement. |
string |
$fprefix = "" |
An optional string which all fieldnames in $assoc are prefixed with. |
string
|
An SQL Update or Insert statement with all fields/values from the array. |