|
 |
|
สอบถามปัญหา การ connect php+mssql ไม่ผ่านช่วยผมที่ครับ |
|
 |
|
|
 |
 |
|
Code (PHP)
$objConnect = mssql_connect($host,$user,$pw) or die(mssql_error());
ลองดูครับ แต่ปกติแล้วมันจะแจ้ง Error น่ะครับ
|
 |
 |
 |
 |
Date :
2011-06-27 11:22:24 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เหมือนเดิมเลยครับไม่แตกต่าง ผมเข้าใจว่ามันยัง run คำสั่ง $objConnect = mssql_connect($host,$user,$pw); ไม่เสร็จ แต่ไม่รู้ทำไม
|
 |
 |
 |
 |
Date :
2011-06-27 11:34:01 |
By :
phoenekia |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองใส่
Code (PHP)
error_reporting(E_ALL);
ไว้บนสุดครับ
|
 |
 |
 |
 |
Date :
2011-06-27 12:08:30 |
By :
pjgunner.com |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ ผมเปลี่ยนไปใช้ ODBC ได้เรียบร้อยครับ
|
 |
 |
 |
 |
Date :
2011-06-27 12:35:05 |
By :
phoenekia |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มีปัญหาใหม่แล้วครับ รบกวนด้วยครับ เรื่องภาษาไทยครับ มันออกมาเป็นภาษาต่างดาว ??????? #### อะไรประมาณนี้อะครับ ผมก็ไปsetเป็น windows-874 ก็หาย แต่เมื่อใช้ jquery เรียกใช้ผ่าน div มันกลับไปเป็นภาษาต่างดาวอีกอะครับ
คือ มี 2page ครับคือหน้า showกับหน้าต่อ DB ที่หน้าต่อ DB ผมแก้ด้วยwindows-874 หายแล้ว พอเรียกมาโชว์บนหน้า show มันก็เป็นอีกอะครับ
|
 |
 |
 |
 |
Date :
2011-06-28 11:58:58 |
By :
phoenekia |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมลองหมดแล้วครับตามlinkที่ให้มาหลักๆคือใช้ windows-874 กับใน DB เป็น thai_ci_as ซึ่งตอนนี้ผมก็เป็นอย่างที่ว่าอยู่
|
 |
 |
 |
 |
Date :
2011-06-28 13:27:26 |
By :
phoenekia |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองเพิ่มข้อมูลเข้าไปใหม่ครับ
|
 |
 |
 |
 |
Date :
2011-06-28 13:34:54 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขออภัยครับผมไม่ได้เป็นadmin ของ DB ผมทำได้แค่ view ข้อมูลออกมาดูแค่นั้นครับ เปลี่ยนแปลง แก้ไข เพิ่มเติมหรือใดๆไม่ได้เลยครับ
|
 |
 |
 |
 |
Date :
2011-06-28 13:38:25 |
By :
phoenekia |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้ db เป็น tis620 ซะนะคับ
|
 |
 |
 |
 |
Date :
2011-06-28 13:56:18 |
By :
Dragons_first |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อย่างที่บอกไปแล้วตาม คห.9 ผมทำอะไรกับ database ไม่ได้เลยครับผมมีสิทธิแค่ Select ข้อมูลออกมาจาก view เท่านั้น ผมจึงต้องมาแก้ฝั่งโคดแทนครับ
|
 |
 |
 |
 |
Date :
2011-06-28 15:33:26 |
By :
phoenekia |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองใช้ function iconv() ในการแปลงดูครับ 
|
 |
 |
 |
 |
Date :
2011-06-28 15:36:45 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|