php ตัดคำแล้วมีแบบนี่ต่อ � ไม่อยากให้แสดงพอมีทางแก้ไหม

เริ่มโดย เก๋าลัดคุง, 05 กันยายน 2009, 13:17:29

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

เก๋าลัดคุง

php echo substr($test,0,700);

ใช้ utf-8 ทั้ง MySQL และ mata tag

หนังสุดสยองอย่าง Saw จะถูกนำมาทำเป็นเกมจนได้
จากที่มีข่าวเรื่อง Konami ซื้อลิขสิทธิ์ภาพยนตร์เรื่อง SAW ออก�


มันตัดคำแล้วมีแบบนี่ต่อ �  ไม่อยากให้แสดงพอมีทางแก้ไหมครับ ขอบคุณครับ  ???
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]

apikongzad


ijeed

[direct=https://www.xn--72caic4dq4dbbh8hb1cya5b0a1nng.com]รับซื้อทองเชียงราย[/direct]
[direct=https://www.xn--72ch0bkxyb6fb6adv1d1hnf.com]รับซื้อทองพะเยา[/direct]
[direct=https://www.xn--42cfblc6eta3ebbi7ib5c0a8b1a0ob7o.com]รับซื้อทองเคเชียงราย[/direct]
[direct=https://www.xn--72cfac8eza4abbed7i1bya5b0a8md9n.com]รับซื้อเพชรเชียงราย[/direct]
[direct=https://www.xn--b3cb8brbybe1g8adv1dwhf0l.com]รับซื้อเพชรพะเยา[/direct]

ayeweb


[direct=https://www.bitimer.in.th/]ข่าวไอที[/direct] ข่าวสารไอที แอพไอโฟน บริการอื่นๆ
[direct=https://page.line.me/gnm7628z]บริการ ตรวจหวย[/direct] อื่นๆ ทั่วไปสาระน่ารู้ ความรู้ต่างๆ
[direct=https://goo.gl/XQp91t]Host ไทย[/direct] เว็บผู้หญิงนะคะ แต่ผู้ชายก็เข้าได้ค่ะ
[direct=https://page.line.me/oer1981h]ตรวจหวย[/direct]
ตรวจหวย ผลสลากกินแบ่งรัฐบาล>>
[direct=https://goo.gl/H3JCzK]เช่าโฮสติ้ง Ruk-com[/direct]

pongpatkku2

เคยแก้อยู่นะ แต่ตอนนี้จำไม่ได้ เดี๋ยวจะลองเปิดกรุงานเก่า เอาวิธีมาแก้ให้นะคับ (Green) ???
เรื่องการทำเกษตร สำหรับท่านใดที่สนใจ[direct=//esan108.com/การเลี้ยงปลาดุก.html]การเลี้ยงปลาดุก[/direct]หรือ[direct=//esan108.com/การเลี้ยงกุ้งฝอย.html]การเลี้ยงกุ้งฝอย[/direct]รวมถึงเรื่องราวของเรื่องเกษตรกรอื่นๆ ศึกษาเพิ่มเติมได้ที่[direct=//esan108.com]อีสานร้อยแปด[/direct] นอกจากนี้ยังมีบทความเกี่ยวกับการท่องเที่ยวในภาคอีสานเช่น [direct=//esan108.com/วัดถ้ำผาแด่น.html]วัดถ้ำผาแด่น[/direct] หรือถ้าหากอยากจะฝึกพูดภาษาท้องถิ่นภาคอีสาน เช่น [direct=//esan108.com/dict/]ภาษาอีสาน[/direct] ก็สามารถทำได้เช่นเดียวกัน เพราะอีสานร้อยแปดรวบรวมภาษาอีสานไว้มากที่สุด ณ ตอนนี้

navico


mixture

[direct=http://moomak.wordpress.com]จิ[/direct]

เก๋าลัดคุง

อ้างถึงจาก: navico ใน 05 กันยายน 2009, 14:47:28
mb_substr

พอดีเจ้า php.ini มัน ;extension=php_mbstring.dll มันไม่เปิดไว้  :P

+1 ให้คุณ navico ตอนนี้ได้แล้วครับ
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]

icez

[direct=http://www.thzhost.com/]THZHost[/direct] SSD Hosting ไทย/สิงคโปร์ พร้อม firewall ป้องกันการยิงเว็บ + scan ไวรัสในเว็บ

ขัน

mySQL ของผมตอนเปลี่ยนมาใช้ utf-8

ผมใช้วิธี อ่าน utf-8 ปลอมออกมา
แล้ว save กลับเข้าไปใหม่เป็น UTF-8 แท้ๆครับ


งงมั้ย ผมก็งง แต่มันใช้ได้นะ
;D

จริงๆ
[direct=http://www.coolstylecase.com/listt.php?model=GPL&page=1]Phone Case[/direct]  [direct=http://www.designbykhan.com]Design by Khan[/direct] [direct=http://www.m-thong.com]ห้องเช่าเมืองทอง[/direct] [direct=http://www.thaidokudami.com]พลูคาวโดกุดามิ[/direct]

nothingg

ลองแล้ว ทำไม่เห็นได้เลบอ่าครับ .. DB เป็น utf-8 น่ะครับ

-nobita-

[direct=http://www.hiclassnoodle.com]ก๋วยเตี๋ยวไฮคลาส จ.อุบลฯ[/direct]
[direct=http://www.teeneeme.com/ubonfood]รวมร้านอาหาร อุบลฯ[/direct]

mixture

mb_internal_encoding("UTF-8");
$name = mb_substr($row2['movie_thai'],0,20)."..";

ตัวอย่างด้านบน $row2['movie_thai'] คือภาษาไทยจาก DB ตัดมาใช้ตั้งแต่ตัวอักษรแรก 0 ถึง 20 แล้วก็ที่เหลือเป็น ..

เอา $name ไป echo ได้เลย อยากเล่นอะไรแปลก ๆ ก็ไปดู manual ของเว็บ php.net ดูครับ
[direct=http://moomak.wordpress.com]จิ[/direct]