Ciao raga ho fatto questo codice
Codice PHP:
require("../../include/config.php");
$titolo = $_POST['titolo'];
$anteprima_tut = $_POST['anteprima_tut'];
$tutorial = $_POST['tutorial'];
$key = $_POST['key'];
$categoria = $_POST['categoria'];
$data=date("d/m/Y");
$titolo_tut_mod = str_replace(" ", "_", $titolo);
$stringa_query = "INSERT INTO tutorial (titolo, anteprima_tut, tutorial, autore, data, click, key, attivo, categoria, titolo_tut_mod) values ('".$titolo."','".$anteprima_tut."','".$tutorial."','".$usernick."', '".$data."', '0', '".$key."', '0', '".$categoria."',
'".$titolo_tut_mod."')";
Ma mi da queto errore
Codice PHP:
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 'key, attivo, categoria, titolo_tut_mod) values ('titolo ok','anteprima tutorial ' at line 1
Cosa ho sbagliato??
Ciaoo