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