Codice PHP:
$path="index.php?section=14&pageID=6#";
$result = mysql_query ( "select * from pianeti where tipo='s' AND tipo='t' ");
while ( $row = mysql_fetch_object ( $result )) {
//if($row->tipo=='t') $path="index.php?section=14&pageID=7#";
echo " <tr>
<td >[url=".$path.$row->planet."]".$row->planet."[/url]</td>
<td >".$row->km."</td>
<td >".$row->ua."</td>
<td >".$row->peri."</td>
<td >".$row->af."</td>
</tr>
";
}
mysql_free_result ( $result );
con la query io devo selezionare i campi planet che hanno per tipo 's' e 't' però mi da campo vuoto mentre se li prendo separatamente me li da perchè come posso risolvere ho provato sia
tipo='s' AND 't' che tipo='s' AND tipo='t' ma niente campi vuoti