예제 #1
0
function policy_save()
{
    $q = new mysql_meta();
    if ($_POST["ID"] == 0) {
        $sql = $q->SQL_ADD_FROM_POST("ID", "policies");
    } else {
        $sql = $q->SQL_EDIT_FROM_POST("ID", "policies");
    }
    $q->QUERY_SQL($sql);
    if (!$q->ok) {
        echo $q->mysql_error;
    }
}