|
|
|
สงสัย PHP Ajax Image Mysql ครับจะ <img src=""> ที่ไหน รบกวนทำเป็นตัวอย่างกับCode ที่ผมให้ด้วยครับ |
|
|
|
|
|
|
|
Code (PHP)
$sql = "SELECT title_news, date_news, id_type FROM `tb_news` WHERE id_type='001' ORDER BY date_news DESC LIMIT 3";
$dbquery = mysql_db_query($dbname, $sql);
while($row = mysql_fetch_array($dbquery)){
$title = $row["title_news"];
$date = $row["date_news"];
if($date == date("Y-m-d"))
{
echo "<img src='news.gif'>";
}
echo "<tr>";
echo "<td align =left><h2>$date"."<img src=image/photo/iconnew.gif width=50 height=20 />"."$title</h2></td>"."<br>";
echo "</tr>";
}
|
|
|
|
|
Date :
2012-07-19 21:00:38 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|