嗨,我使用下面code
顯示來自database
city value
-如果在php else條件
<?php
//echo "SELECT city FROM tbl_city_master WHERE id = ".$rs->city.""
$getCityQuery = mysql_query("SELECT city FROM tbl_city_master WHERE id = ".$rs->city."");
$resultSetCityQuery = mysql_fetch_assoc($getCityQuery);
?>
<? echo '<strong>City-</strong>' ?><? echo $resultSetCityQuery['city'];?>
一切都是我需要說沒有哪座城市Choosen在if else
condition--我如何可以實現代碼
幾乎工作,而是拋出一個錯誤'警告:mysql_fetch_assoc()預計參數1是資源,boolen given' –
檢查更新代碼 –
Grt @非常感謝.. –