-3
我的代碼爲我的網站是如何使用PDO
$sth = $con->query("SELECT * FROM posts");
$sth->setFetchMode(PDO:: FETCH_ASSOC);
while($row = $sth->fetch()){
$title = $row['post_title'];
$date = $row['post_date'];
$author = $row['post_author'];
$image = $row['post_image'];
$content = $row['post_content'];
echo "<h1>" . $row['post_title'] . "</h1>";
echo "<p>Published on: " . "<b>" . $row['post_date'] , "<p>Published By: ". $row['post_author'] ."</b>" . "</p>";
如何顯示我的形象就是在mysql數據庫從MySQL顯示圖像? 我是一個全新的網絡開發學習人員,所以請幫助我,並指導我
它does'n顯示在我的網頁我的圖像只顯示其圖像名稱 – Usama
打開生成的html,看看你有什麼就有什麼 –