ciao a tutti!! devo riuscire ad estrapolare l'id di un certo utente
mi da questo errore:
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 'Resource id #7' at line 1
Codice PHP:
$controllo_db = mysql_query ("SELECT * FROM `utenti` WHERE `nick` = '".$nome_utente."'");
$result = @mysql_query($controllo_db) or die (mysql_error());
$row = @mysql_fetch_array($result) or die (mysql_error());
$iduser=$row['id'];