in $res nell'esempio che ho fatto io.
oppure puoi fare
$res = mysql_num_rows(mysql_query("SELECT id FROM tabella WHERE azienda=$id_azienda"));
in $res nell'esempio che ho fatto io.
oppure puoi fare
$res = mysql_num_rows(mysql_query("SELECT id FROM tabella WHERE azienda=$id_azienda"));