|
|
|
ดึงภาพจากดาต้าเบส ทำเป็น Slide เขียน Code sql ยังไงค่ะ |
|
|
|
|
|
|
|
Code (PHP)
<div id="mygalone" class="svw">
<ul>
<?php
$objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
$objDB = mysql_select_db("mydatabase");
$strSQL = "SELECT * FROM customer";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($objResult = mysql_fetch_array($objQuery))
{
?>
<li><a href="<?php echo $objResult["URL"];?>" target="_blank"><img alt="Picture 1" src="slide_picture/<?php echo $objResult["Picture"];?>" border="0" /></a></li>
<?php
}
mysql_close($objConnect);
?>
</ul>
</div>
|
|
|
|
|
Date :
2016-02-09 11:12:02 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|