Ciao a tutti,
non riesco a capire cosa non vada in questo codice:

<?php

include 'db.php';

$ordinep_qta = $_POST['ordinep_qta'];
$ordinep_totale = $_POST['ordinep_totale'];
$ordinep_userid = $_POST['ordinep_userid'];
$ordinep_newsid = $_POST['ordinep_newsid'];

$sql = mysql_query("INSERT INTO ordinep (ordinep_qta, ordinep_totale, ordinep_userid, ordinep_newsid, ordinep_datetime)
VALUES('$ordinep_qta', '$ordinep_totale', '$ordinep_userid', '$ordinep_newsid', now()") or die (mysql_error());

header("Location: ../index.php");


?>

e come mai mi restituisca questo errore:

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


Grazie mille