Overview

Packages

  • awl
    • AuthPlugin
    • AwlDatabase
    • Browser
    • classEditor
    • DataEntry
    • DataUpdate
    • EMail
    • iCalendar
    • MenuSet
    • PgQuery
    • Session
    • Translation
    • User
    • Utilities
    • Validation
    • vCalendar
    • vComponent
    • XMLDocument
    • XMLElement
  • None

Classes

  • DBRecord

Functions

  • sql_from_object
  • sql_from_post
  • Overview
  • Package
  • Function

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
Parameters summary
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.
Return value summary
string An SQL Update or Insert statement with all fields/values from the array.
API documentation generated by ApiGen