Ciao a tutti...
Ho questa query che mi fa impazzire
Codice PHP:
/* Connessione al db */
$cn = mysql_connect("localhost", "xxx", "xxx")
or die("[b]Errore:[/b] Impossibile connettersi al Database mysql");
mysql_select_db("xxx",$cn)
or die("[b]Errore:[/b] Impossibile accedere al Database Mysql");
/* Query per il salvataggio di tutti i dati nella tabella sma */
$sql = "SELECT * FROM sma ORDER BY numero DESC LIMIT 1 ";
$result = mysql_query($sql, $cn) or die (mysql_error());
while($riga=mysql_fetch_array($result))
{
$query= "UPDATE sma SET data='$data',
A8='$A8',
B8='$B8',
C8='$C8',
note='$note' where numero = ".$riga['numero']." ";
$result2= mysql_query($query,$cn) or die (mysql_error());
}
della tabella sma mi si aggiorna solo $note...