0
에 존재 나는 그들이 스키를 탄 스키어와 스키 역이있는 테이블이없는 경우에만 표시 예를 들어는 MySQL의
:.
--------------------- skier station --------------------- | 1 | 2 | 1 | 3 | 2 | 2 ---------------------
나는 세 방송국이 있다면 나는 텍스트를 표시하려면 그 스키어는이 역에 없다고합니다.
$result="SELECT * FROM skiers_and_stations WHERE skier = '$id_skier';";
$makeResult=mysql_query($result, $conexion);
while ($row = mysql_fetch_array($makeResult, MYSQL_ASSOC)) {
if ($row['station'] == '1') { } else {echo "No here before, station 1"};
if ($row['station'] == '2') { } else {echo "No here before, station 2"};
if ($row['station'] == '3') { } else {echo "No here before, station 3"};
}
을하지만 그것은 작동하지 않습니다
나는 있습니다.
내가 표시 할 : 문이 거짓와 다른 문으로 이동한다면
Skier 1 No here before, station 1