UPDATE tabella SET top='5', left='5' WHERE id='1'
mi dice
#1064 - 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 'left='5' WHERE id='1'' at line 1
UPDATE tabella SET top='5', left='5' WHERE id='1'
mi dice
#1064 - 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 'left='5' WHERE id='1'' at line 1
i valori numeri NON vanno tra apici![]()
ehehehehe non va uguale![]()
cmq il codice completo è questo
$updateSQL = sprintf("UPDATE tabella SET top=%s, left=%s WHERE id=%s",
GetSQLValueString($_POST['top'], "int"),
GetSQLValueString($_POST['left'], "int"),
GetSQLValueString($_POST['id'], "int"));
$Result1 = mysql_query($updateSQL, $conn) or die("Errore nel file:".__FILE__. " alla linea ".__LINE__."".mysql_error());
cioè l'ho sempre usato cosi l'update e non mi ha mai dato problemi
proprio non capisco
ci sono anche TOP e LEFT che sono parole riservate. mettile tra backtick
`TOP`
grandeeeee grazie optime non sapevo che top e left erano riservate
grazie ancora ciao