Mo' faccio la figura della deficente...

Questo var_dump... non devo metterlo nel dbquery... ma nel file che mi gestisce la news, cioè managenews.php, giusto?

<?php
include("../util/dbconn.php");
include("../util/dbquery.php");

session_start();
if (!readCookie('admin', $_SESSION['userid']))
{
header("location: index.php");
}

$dbConn = OpenConn();

$submit = $_POST['_submit'];

$id = $_POST['id'];
$_data = $_POST['_data'];
$_titolo = $_POST['_titolo'];
$_testo = $_POST['_testo'];

var_dump($strSql);

//inserimento prodotto

switch ($submit)
{
case "Insert":
$sSql = InsertNews($_data, $_titolo, $_testo);
break;
case "Update":
$sSql = UpdateNews($_data, $_titolo, $_testo, $_id);
break;
}

$result = mysql_query($sSql, $dbConn) or die('
'. mysql_error() . '
');

if ($submit == "Insert")
{
$sSql = GetLastNews();
$result = mysql_query($sSql, $dbConn);
$row = mysql_fetch_array($result);
$id = $row['id'];
mysql_free_result($result);
}

header("location: news.php?id=". $id);

CloseConn($dbConn);

?>

Facendo così e cliccando su update... esce fuori...

NULL
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

... sicuramente è sbagliato... boh... non lo so...