0
即時改變一切mysqli,因爲我只是學習它很難。我究竟做錯了什麼?我的圖像顯示中斷並打印文件名稱,我知道這是一個簡單的問題,但是我試圖在沒有結果的情況下搜索互聯網。遺憾IM學習mysqli不顯示圖像數據庫
<?php
include_once("db_conex.php");
$query = "SELECT * FROM employees ORDER BY price ASC";
$query = mysqli_real_escape_string($db,$query);
if($result = mysqli_query($db,$query)){
while($row = mysqli_fetch_object($result)){
echo "<br /><br />";
echo '<img src="/upload/ " border=0>', $row->photo;
echo "<br /><br />";
echo '<b> City: </b>', $row->city;
echo '<b> Price: </b>', $row->price;
echo '<b> Bath: </b>', $row->bath;
echo '<b> Bath: </b>', $row->bed;
echo '<b> Description: </b>', $row->description;
echo '<b> Link: </b>', $row->link;
}
mysqli_free_result($result);
}
//Close Connection
mysqli_close($db);
?>
@這裏的第一個問題,請閱讀怎麼辦[當你得到的答案](http://stackoverflow.com/faq#howtoask)。 – SparKot 2013-02-09 20:29:01