|
 |
|
การอัพเดทลงฐานข้อมูล sql server ใช้ฐานข้อมูล sql server ใช้ charset=utf-8" |
|
 |
|
|
 |
 |
|
ปัญหานี้ผมเคยเจอใน MySql นะครับ เหมือนกันเลย และผมก็หาคำตอบได้จากที่นี่
ลองเอาไปดัดแปลงดูนะครับ
ก่อนจะ query ผมเพิ่มบรรทัดนี้เข้าไป
mysql_query('SET NAMES UTF-8');
Exam :
$strSQL1="update UOC_STAFF set STF_FNAME ='$txtfname' where CITIZEN_ID='$CITIZENID';";
mysql_query('SET NAMES UTF-8');
$objQuery = mysql_query($strSQL1, $conn);
แต่ว่า MsSql ผมไม่รู้จริงๆ ว่าต้องทำยังงัย
ลองเอาไปเป็นแนวทาง อาจจะได้ครับ
ผมมือใหม่ยังไม่ค่อยมีความรู้ครับ
ขอฝากเนื้อ ฝากตัวด้วยนะครับ
|
 |
 |
 |
 |
Date :
2009-09-07 11:45:25 |
By :
saratu |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองปรับเปลี่ยนตรงนี้ดูครับเผื่อช่วยได้

|
 |
 |
 |
 |
Date :
2009-09-07 12:04:32 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่ทราบว่าที่ MSSQL อ่านไม่ออก
หรือว่า พอUpdate แล้วดึงข้อมูลมาแล้วอ่านไม่ออกครับ
|
 |
 |
 |
 |
Date :
2009-09-08 08:14:40 |
By :
taobsd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|