si le variabili sono corrette e piene se faccio una stampa.
ho fatto pure così ma niente
if (($fp = fopen($file, "r")) !== false)
{
while (($dati = fgetcsv($fp, 1000, $splitter)) !== false)
{
if ($dati[0] == $cerco)
{
foreach( $dati as $elem ) $stampo .= "<td class= auto-style1 align='center' width='85px' height='15px'>".$elem."</td>";
$tipo=$dati[0];
$pers=$dati[1];
$classe=$dati[2];
echo '<tr>'.$stampo.'<td class= auto-style1 align=\'center\' width=\'40px\'><a href=\'popup.php?tipo=$tipo&pers=$pers&classe=$cla sse\'>ciao</a></tr>';
echo $dati[0];
$stampo="";
}
}
fclose($fp);
}

Rispondi quotando