Example #1
0
/**
 * saveData: saves data to table
 *
 * @author    Ing. Jozef Sakáloš <jsakalos@aariadne.com>
 * @date      02. April 2008
 * @return    void
 * @param     PDO $osql
 */
function saveData($osql)
{
    global $objects;
    $params = $objects[$_REQUEST["objName"]];
    unset($params["fields"]);
    $params["data"] = json_decode($_REQUEST["data"]);
    $osql->output($osql->saveData($params));
}