Fatto. Ora mi da quest'altro errore.
Errore query tre: 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 '' at line 1
Il codice ora è cosi:
codice:<? include "../config.php"; include "controllo.php"; $id1 = $_GET['id1']; $numero = $_GET['numero']; $sponsor = $_GET['sponsor']; $utente = $_GET['utente']; $query_uno = "SELECT * FROM utenti WHERE id=$utente"; $result_otto = mysql_query($query_uno, $db) or die('Errore query tre: ' . mysql_error()); $query_tre = "UPDATE utenti SET $sponsor=1 WHERE numero=$numero"; $result_uno = mysql_query($query_tre, $db) or die('Errore query tre: ' . mysql_error()); $query_due = "DELETE FROM signups WHERE id=$id1"; $result_due = mysql_query($query_due, $db) or die('Errore query due: ' . mysql_error()); header("Location: approva_ultimi.php?pag=1"); ?>

Rispondi quotando