- Home
- Categorie
- Coding e Sistemistica
- PHP
- Dove stà l'errore?
-
Dove stà l'errore?
Ciao! Perchè questa query è sbagliata?
[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 ' '', '', '', , '', '', '', '', '', '', '', '', '', '', '', 'ciao funziona o no?' at line 1
<?php
mysql_connect("62","Sql","password");
mysql_select_db("Sql_");
//creo l'array con il giorno/mese/anno
//inserimento dati nel diario
$query = "INSERT INTO diario VALUES (" .
" ''" .
", '" . addslashes ( $_POST['diario'] ) . "'" .
")";
$risultato = mysql_query( $query ) or die ( "query '$query' fallitaGrazie ragazzi!
-
Ci sono due virgole attaccate: , ,
-
dove?
-