Salve sto avendo un problema con l'inserimento di tadi in una tabella composta così:
ID | IDUtente | PayFile | Html | Category | NameFile | Autore | Prezzo | Commento | DataInsertion | Counter | IDFile
questo e SQL:
Codice PHP:
$sql="INSERT INTO files (IDUtente, PayFile, TypeFile, Html, Category, NameFile, Autore, Prezzo, Commento, DataInsertion, IDFile)";
$sql.=" values ";
$sql.="('$_COOKIE[IDUtente_Network]', '$payfile', '$type', '$html' '$categoria', '$name_file', '$autore', '$prezzo', '$commento', Now(), '$idfile')";
if(!mysql_query($sql)){
...
mi da questo errore:
Column count doesn't match value count at row 1