public static function encodeInsertRecord($tableName, $newRecord)
    {
        $query = "INSERT INTO $tableName VALUES (";
        $size = sizeof($newRecord);
        foreach ($newRecord as $index => $record) {
            $query .= " '$record'";
            if ($index != ($size - 1))
                $query .= " ,";
        }
        $query .= " );";
        return $query;
    }
public static function encodeInsertRecord($tableName, $newRecord)
    {
        $query = "INSERT INTO $tableName VALUES (";
        $size = sizeof($newRecord);
        foreach ($newRecord as $index => $record) {
            $query .= " '$record'";
            if ($index != ($size - 1))
                $query .= " ,";
        }
        $query .= " );";
        return $query;
    }
public static function encodeInsertRecord ( $ tableName , $ newRecord ) { $ query = "INSERT INTO $tableName VALUES (" ; $ size = sizeof ( $ newRecord ) ; foreach ( $ newRecord as $ index => $ record ) { $ query .= " '$record'" ; if ( $ index != ( $ size - 1 ) ) $ query .= " ," ; } $ query .= " );" ; return $ query ; }
Creates a insert record SQL statement
@param $tableName
@param $newRecord
@return string executable sql statement
Creates a insert record SQL statement