|
 |
|
ขอถามเกี่ยวกับการดึงข้อมูลจากฐานข้อมูล มาแสดงที่ listbox คะ |
|
 |
|
|
 |
 |
|
แก้ได้แล้วคะ ลืมเซ็ทภาษา สงสัยนั่งทำจนดึกมาหลายวันแล้ว แค่เซ็ทภาษา ยังมึนได้ แหะๆ ขอตัวไปนอนก่อนนะคะ
|
 |
 |
 |
 |
Date :
2009-11-11 03:36:09 |
By :
KhemTiD |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ฝันดีครับ คุณเข็มทิศ อย่าพยายามอะไรมากเกินไป มันจะเบลอ แล้วสิวขึ้นหน้านะ
|
 |
 |
 |
 |
Date :
2009-11-11 05:12:02 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณที่เป็นห่วงกันนะคะ
แต่เหลือเวลาอีกไม่ถึงสองเดือนแล้วคะ นี่ขนาดว่า เริ่มทำโปรเจคก่อนเพื่อนๆในห้องมาหนึ่งเทอมแล้ว
ยังกลัวว่าเสร็จไม่ทันเลยคะ แต่ตอนนี้ ได้ประมาณ 70% ที่เป็นโครงสร้างหลักของระบบ ก็อุ่นใจขึ้นเยอะแล้วคะ
จะได้มีเวลาเหลือมาเปลี่ยนแปลงลูกเล่นในการอินเตอเฟส ให้น่าใช้กว่าเดิมคะ
|
 |
 |
 |
 |
Date :
2009-11-11 14:33:36 |
By :
KhemTiD |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<form name="form1" method="post" action="">
<?
$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."]");
?>
<select name="select">
<?
while($objResult = mysql_fetch_array($objQuery))
{
?>
<option value="<?=$objResult["VALUE"];?>"><?=$objResult["ITEM"];?></option>
<?
}
?>
</select>
</form>
|
 |
 |
 |
 |
Date :
2009-11-11 14:48:42 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
|
 |
 |
 |
 |
Date :
2009-11-11 14:49:51 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|