|
 |
|
ผมผิดตรงไหน .... $objConnect = mysql_connect("localhost","root","gvrugvl") |
|
 |
|
|
 |
 |
|
ดูก่อนนะครับว่า
Table นั้น มีข้อมูลแล้วหรือยังครับ
แล้วก็ ชื่อ Table ถูกหรือเปล่าครับ
|
 |
 |
 |
 |
Date :
2009-03-26 10:26:21 |
By :
dr.website |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมใส่ผิด -*- จริงๆ ด้วย
แต่พอใส่ถูกแล้ว มันแสดงผล ออกมาเป็น แบบนี้ -*-

|
 |
 |
 |
 |
Date :
2009-03-26 10:28:45 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
ให้เป็น 874 ครับ
แล้ว Database อ่ะให้ set เป็นภาษาไทยครับผม
|
 |
 |
 |
 |
Date :
2009-03-26 10:41:03 |
By :
dr.website |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
เป็น 847 คือไร = = คลุมเครือจังคับ
<meta http-equiv="Content-Type" content="text/html; charset=utf-847" />
งี้หรอ -*-
เอ่อ databass ผมเป็นไทย อยู่แล้วอ่ะคับ -*-
|
 |
 |
 |
 |
Date :
2009-03-26 10:51:10 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
แล้วใน database อ่ะครับให้ไป set ให้เป็นไทย อ่ะครับ
ผมจำ บ่ ได้แล้วว่า ค่าเท่าไร แต่ที่ผมเห็นของคุณมันเป็นตัวนี้นะ
mysql อ่ะตรงคำว่า การเรียงลำดับ อ่ะครับมันยังเป็น utf8_unicode อยู่เลยครับ
|
 |
 |
 |
 |
Date :
2009-03-26 11:10:45 |
By :
dr.website |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เค้ารนรงค์ให้ใช้ utf-8 กันไม่ใช่หรอครับ
|
 |
 |
 |
 |
Date :
2009-03-26 11:13:17 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใน sql จะให้ผมใช้อะไรอะครับถ้าไม่ใช่ utf8_unicode -*-
ปล. ปรับ <meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
เหมือนเดิมเด้ะ -*- ช่วยทีคับ
|
 |
 |
 |
 |
Date :
2009-03-26 11:17:25 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คุณต๊ะต่อ(ชื่อไรแปล๊กแปลก) ต้องกำหนดตองสร้าง table ตรงชุดตัวอักษร์ หรือ charset กำหนดเป็น tis620 ค่ะ
===ส่วนหัวของ code เอาตัวไดตัวหนึงไปแปะไว้เป็นหัว ของทุก page ค่ะ===
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<meta http-equiv="Content-Type" content="text/html; charset=tis-620" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
ปล..ต้องลองผิดลองถูกเยอะนะ จะได้เอาปัญหามาเป็นครู
|
 |
 |
 |
 |
Date :
2009-03-26 11:17:40 |
By :
paphun |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
- -* ชื่อ แปลกหรอ =w=
ผมลองทำแว้ว = = มันเหมือนเดิมง่ะ -*-
|
 |
 |
 |
 |
Date :
2009-03-26 11:25:10 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
-- -- เจอแต่ทางตัน
เวรกรรม สนอง = = เวลาเรียนมัวแต่กินขนมหลังห้อง
T__________T
|
 |
 |
 |
 |
Date :
2009-03-26 12:03:35 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองเข้าไปดูตามคำแนะนำของคุณ ZepheruS หรือยังครับ
นั่นหละทางออก
สู้ๆๆ นะครับ
|
 |
 |
 |
 |
Date :
2009-03-26 12:51:10 |
By :
pokultra |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?php
$objConnect = mysql_connect("localhost","root","gvrugvl") or die("ติดต่อฐานข้อมูลไม่ได้");
$objDB = mysql_select_db("mds");
//@mysql_query("SET NAMES UTF8");
@mysql_query("SET character_set_results=tis620");
@mysql_query("SET character_set_client='tis620'");
@mysql_query("SET character_set_connection='tis620'");
@mysql_query("collation_connection = tis620_thai_ci");
@mysql_query("collation_database = tis620_thai_ci");
@mysql_query("collation_server = tis620_thai_ci");
?>
ไม่รู้จะตอบช้าไปรึเปล่านะ
|
 |
 |
 |
 |
Date :
2009-03-26 13:06:49 |
By :
mai_sao |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
-*- คือ หัวหน้า ผม เค้าต้องการให้ใช้ UTF-8 อ่ะครับ -*-
|
 |
 |
 |
 |
Date :
2009-03-26 13:10:50 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำไมต้องเรียงลำดับ utf8_unicode_ci อ่ะ
|
 |
 |
 |
 |
Date :
2009-03-26 13:27:35 |
By :
sillyman24 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไฟล์ คอนเน็ค ให้ เซตเนม เป็น UTF8 ไม่มีขีด
ไฟล์ปัจจุบันเป็น UTF-8 เหมือนเดิม แล้วลองดูใหม่คับ
SITE: http://gunner.freetzi.com
|
 |
 |
 |
 |
Date :
2009-03-26 13:30:11 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
mysql_query("SET NAMES UTF8") or die(mysql_error()); ไว้หลัง บรรทัด mysql_select_db() ครับ
|
 |
 |
 |
 |
Date :
2009-03-26 13:38:59 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่ะเฮ้ยยยย คุณ พี่เอี่ยววววววววววววววววววว
เจ๋งเป้ง เลยครับ ได้เรียบร้อย ก๊าบบบบบบบบบบบ
|
 |
 |
 |
 |
Date :
2009-03-26 13:50:56 |
By :
torrider |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
จบไปอีกหนึ่งปัญหาครับ

สู้ๆครับ
|
 |
 |
 |
 |
Date :
2009-03-26 16:14:58 |
By :
pokultra |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ดีใจด้วยคร้า
|
 |
 |
 |
 |
Date :
2009-03-30 13:35:20 |
By :
PUGPAW |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|