|
 |
|
Flash+MySQL อยากทราบว่าวิธีติดต่อฐานข้อมูลระหว่างFlashกับMySQLน่ะค่ะ |
|
 |
|
|
 |
 |
|
ได้ยังครับ
จะหาดูในเครื่องนะครับ
เคยมี
|
 |
 |
 |
 |
Date :
28 ก.ย. 2551 23:40:16 |
By :
ท้องฟ้า |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อยากรู้เหมือนกัน
^^
ขอด้วยคนนะค่ะ
|
 |
 |
 |
 |
Date :
2009-03-31 17:05:50 |
By :
oxygenz |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ด้วยคนซิ
ขอบคุณค่ะ
|
 |
 |
 |
 |
Date :
2009-05-05 16:57:40 |
By :
kanowan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ที่พอรู้ก็แฟลตกะ xml อะครับ ได้มะ
|
 |
 |
 |
 |
Date :
2009-07-15 14:27:10 |
By :
nakarin21928 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
var my_lv = new LoadVars();
my_lv.onLoad = function(success){
if(success){
//ส่วนของการทำงานเมื่อดึงข้อมูลเสร็จ
}
}
my_lv.load("PHPFILE.php"); //สำหรับดึงค่าอย่างเดียว หรือจะใช้
my_lv.send("PHPFILE.php","_blank","POST"); //สำหรับส่งอย่างเดียว หรือจะใช้
my_lv.sendAndLoad("PHPFILE.php","LOADVARS_RECEIVER","POST"); //ทั้งส่งค่าและดึงค่า
โดยที่
PHPFILE.php = ชื่อไฟล์ php
_blank = ส่งไปที่หน้าต่างใดๆ (เหมือนการลิงค์) จะมี _blank, _self, _parent หรือชื่อเฟรม
POST = รูปแบบการส่งข้อมูล (Sending Method) จะมี GET กับ POST
LOADVARS_RECEIVER = ตัวแปร loadvars ที่ทำหน้าที่รับค่าที่ดึงกลับมาหลังการส่งข้อมูล
และใน PHP เช่นเดียวกัน
อ้างถึง
$sql="QUERY STRING";
$result=mysql_query($sql);
...
echo "var1=val1&var2=val2&....";
โดยที่
QUERY STRING = คำสั่ง SQL เช่น SELECT * FROM xxx
mysql_query = คำสั่งที่ใช้ในการทำ SQL Query String
ถ้าอยากรู้มากกว่านี้เข้า www.thaiflashdev.com แล้วหาดูครับ
|
 |
 |
 |
 |
Date :
2009-08-25 23:58:51 |
By :
TheNameLess |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่เคยเขียนเหมือนกัน อยากรู้
|
 |
 |
 |
 |
Date :
2010-04-07 13:00:10 |
By :
rinchie |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณ NO.6 มากครับ
|
 |
 |
 |
 |
Date :
2010-08-10 17:41:04 |
By :
A |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
สมัยนี้เจอแบบนี้เยอะครับ
|
 |
 |
 |
 |
Date :
2010-08-15 02:04:52 |
By :
zoneme |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ แต่รบกวนช่วยอธิบายวิธีใช้หน่อยได้ไหมครับ
|
 |
 |
 |
 |
Date :
2010-10-14 15:05:35 |
By :
2m2n |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คงจะ เจ๋งโคตรเลย
|
 |
 |
 |
 |
Date :
2011-04-06 20:50:58 |
By :
Nero |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากค่ะ
|
 |
 |
 |
 |
Date :
2011-09-20 10:54:03 |
By :
เด็กใหม่หัด php |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|