Ciao, sto cercando di far funzionare un popup che viene chiamato con un'URL del tipo popup.php?id=x.

Questo è il codice in popup.php:

Codice PHP:
                 <?
          
          $debug 
$_GET['id'];
          
          echo 
$debug;  // visualizza correttamente l'id
          
          
$risultato " SELECT id, descrizione FROM tabella WHERE id = $debug  ";
          while (
$riga mysql_fetch_array($risultatoMYSQL_NUM)){
          
          
$descrizione $riga[1];
          echo 
$descrizione;

          }
          
          
mysql_free_result($risultato);
        
?>
L'errore che ottengo è

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/php/ bla bla bla... on line 15 ( mysql_fetch_array($risultato, MYSQL_NUM) ).

Idee?