mi da' 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 '' at line 1

ecco il codice

Codice PHP:
$connessione=mysql_connect($db_host,$db_user,$db_password);
mysql_select_db($db_database,$connessione); 

$dati=mysql_query("select progressivo from autofx where id =(select MAX(id) from autofx where nomets='$nomets'") or die(mysql_error());
                                                                                                                                         while(
$array=mysql_fetch_array($dati))
{
echo 
"$array[0]";