forse ho il cervello spento...ma non mi riesce una cosa del tipo:
Codice PHP:
$query = "SELECT * FROM tabella, tabella1, tabella2 WHERE tabella.id=tabella1.idt AND tabella1.idt1=tabella.idt AND tabella2.idt2=tabella.idt ";
$result = mysql_query($query, $db) or die( "Errore: " . mysql_error() );
$numrows = mysql_num_rows($result);
while ($numrows=mysql_fetch_array($result)) {
echo "
".$SEDE.": ";
if ($lang==it){ echo "".$numrows['sedeP'].""; }
elseif ($lang==en) { echo "".$numrows['sedePEN'].""; }
// e fin qui tutto ok!!
// ora vorrei fare una cosina con IF e il numrows.
if ($numrows['tabella1.Datibinari']!=0) { echo "Risultato interrogazione condizionale"; } else { echo "Niente"; }
// questo if non mi funziona!
Secondo voi sto sbagliando?