Non so come mai non mi visualizza la tabella...
nella pagina sorgente apre e chiude la tabella ma non so perchè non cè dentro niente
Mentre se tipo inserisco un campo vuoto nel campo di ricerca i controlli me li fa tranquillamente
cosa ce che non va!?!? funzionava fino a 30 minuti fa e non ho toccato niente

Codice PHP:
 html_header("");
    
intestazione();
     
inizio();
            
menu();
       
$link_id=db_connect();
  if (!
$link_id
  {
      echo 
sql_error();
      
html_footer();
      exit();
  }
  
$titolo=$_GET["ricerca"];
  
$categoria=$_GET["categoria"];
 
  
        
ricerca_categoria_ricerca();
        
        
//controllo se categoria Ã¨ qualsiasi o un altra //controllo se l'asta Ã¨ scaduta
        
if($categoria=="qualsiasi" && $titolo!="")
            {
                
$query="SELECT  ID, Prezzo_iniziale, Titolo,data_inizio,data_fine,ID_Utente
                FROM OGGETTO 
                WHERE titolo LIKE '%
$titolo%' AND data_fine > '" date('Y-m-d H:i:s') . "' AND convalidato='si'";
                
$result mysql_query ($query);
            }
        
        else
            {
                
$query="SELECT  ID,Prezzo_iniziale, Titolo,data_inizio,data_fine,ID_Utente
                FROM OGGETTO 
                WHERE titolo LIKE '%
$titolo%' and categoria='$categoria' AND data_fine > '" date('Y-m-d H:i:s') . "' AND convalidato='si'";
                
$result mysql_query ($query);
            }
        
        if (
mysql_num_rows($result) == "0")
        {
        
            if(
$titolo=="")
                {
                    echo 
"<p style='float: left; padding-left:10px; font-size:15px'>Inserisci qualcosa nel campo ricerca</p>";
                }
            else
                {
                    echo 
"<p style='float: left; padding-left:10px; font-size:15px'> Non ci sono risultati per la tua ricerca</p>";
                }
        
        }
        
        else
        {
        echo
"<div id='ric_principale'>";
        echo
"<table  id='zebra' cellpadding='0' cellspacing='0' border=0 style='width:100%'> ";
        while(
$row mysql_fetch_array($result)) 
        {
        
            
$query2="SELECT MAX(Prezzo) AS Prezzo_finale from offerta where ID_Oggetto=" $row["ID"] ." ";
            
$result2 mysql_query ($query2);
            
            while(
$row2 mysql_fetch_array($result2))
                {
                
$query3="SELECT (SELECT nickname FROM offerta,utente WHERE offerta.ID_Utente=utente.ID AND ID_Oggetto=" $row["ID"] ." AND Prezzo=
                (select MAX(Prezzo) from offerta where ID_Oggetto=" 
$row["ID"] ." )) AS nick_acquirente
                FROM oggetto,utente 
                WHERE Utente.ID=Oggetto.ID_Utente and Oggetto.ID=" 
$row["ID"] ."";
                
$result3 mysql_query ($query3);
                
                while(
$row3 mysql_fetch_array($result3)) 
                {    
                    
$queryc="SELECT 
                    DATE_FORMAT(data_fine, '%Y') as Anno,
                    DATE_FORMAT(data_fine, '%m') as Mese,
                    DATE_FORMAT(data_fine, '%e') as Giorno,
                    DATE_FORMAT(data_fine, '%H') as Ora,
                    DATE_FORMAT(data_fine, '%i') as Minuti,
                    DATE_FORMAT(data_fine, '%s') as Secondi,
                    DATE_FORMAT(data_inizio, '%e-%m-%Y [b]alle Ore:[/b] %H:%i:%s') as inizio_asta,
                    DATE_FORMAT(data_fine, '%e-%m-%Y [b]alle Ore:[/b] %H:%i:%s') as fine_asta
                    FROM oggetto
                    WHERE ID=" 
$row["ID"] ." ";
                    
$resultc mysql_query ($queryc);
            
        
                    while(
$rowc mysql_fetch_array($resultc)) 
                    {
                    
$queryfeed"SELECT count(*) as numFeed from feedback where ID_Utente=" $row["ID_Utente"] ." ";
                    
$resultfeed mysql_query ($queryfeed);
                                
                        while(
$rowfeed mysql_fetch_array($resultfeed)) 
                        {
                            
                                
$queryperc="select 
                                ((select count(*) from feedback where esito='Positivo' and ID_Utente=" 
$row["ID_Utente"] ." )/
                                (select count(*) from feedback where ID_Utente=" 
$row["ID_Utente"] .")*100) as percentuale 
                                from feedback 
                                group by percentuale"
;    
                                
$resultperc mysql_query ($queryperc);
                                while(
$rowpercmysql_fetch_array($resultperc)) 
                                {                                
$fine_an=$rowc["Anno"];
                                    
$fine_ms=$rowc["Mese"];
                                    
$fine_gg=$rowc["Giorno"];
                                    
$fine_ora=$rowc["Ora"];
                                    
$fine_min=$rowc["Minuti"];
                                    
$fine_sec=$rowc["Secondi"];
                                    
                                echo
"
                                <tr> 
                                <form action='Asta.php' method='get'>
                                <td style='border:hidden; border-bottom: 1px solid #EFEFEF; height:125px;width:125px'>"
;                                    
                                        
$img "./img/" $row["ID"] .".jpg";    
                                            if (
file_exists($img))
                                        { 
                                            echo
"[url='Asta.php?ID_OGGETTO=" $row["ID"] ."']";ridimensiona_stampa($row['ID'],'s');echo"[/url]";
                                        }
                                    else
                                        {
                                            echo
"[url='Asta.php?ID_OGGETTO=" $row["ID"] ."']";ridimensiona_stampa('default','s');echo"[/url]";
                                        }
                                echo
"
                                </td>  
                                
                                <td style='border:hidden; border-bottom: 1px solid #EFEFEF; text-align:left;width:60%'> 
                                <div style='float: left; padding-left:10px'>
                                    <div style='float: left;width:100%;font-size:18px;'>
                                    [url='Asta.php?ID_OGGETTO=" 
$row["ID"] ."'][b]"$row["Titolo"] .  "[/b][/url]
                                    

</div>
                                    <div style='float: left;'>
                                    

Numero di Feedback: " 
$rowfeed["numFeed"] ." | " floor($rowperc["percentuale"]) ."%</p>
                                    


                                    </div>
                                
                                </td>
                                
                                <td style='border:hidden; border-bottom: 1px solid #EFEFEF; text-align:right'>"
;
                                    if (
$row3["nick_acquirente"]=="")
                                        { 
                                            echo 
"[b]EUR "$row["Prezzo_iniziale"]=number_format($row["Prezzo_iniziale"],2,".",".") ." [/b] ";
                                        }
                                    else
                                        {
                                            echo 
"[b]EUR "$row2["Prezzo_finale"]=number_format($row2["Prezzo_finale"],2,".",".") ." [/b] " ;
                                        }
                                echo
"
                                </td> 
                                
                                <td style='border:hidden; border-bottom: 1px solid #EFEFEF;text-align:right'>"
;
                                    
countdiff($fine_an,$fine_ms,$fine_gg,$fine_ora,$fine_min,$fine_sec);
                                echo
"
                                </td>
                                
                                </form>" 
;
                                }
                        }
                    }
                }
            }
        }
        echo
"</tr></table>
        

</div>"
;
       }
    
mysql_close();
  
clearer();
  
c_main();
  
bottom_footer();
  
html_footer();