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