Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,030

HOME > PHP > PHP Forum > ไม่เป็นภาษาไทยอ่ะค่ะ ??????? มันขึ้นงี้อะ mysql_query("set NAMES tis620");



 

ไม่เป็นภาษาไทยอ่ะค่ะ ??????? มันขึ้นงี้อะ mysql_query("set NAMES tis620");

 



Topic : 029865

Guest




เพิ่ม
header("Content-type: text/html; charset=tis-620");
และ
mysql_query("set NAMES tis620");
ก็ไม่ได้ค่ะ ต้องเปลี่ยนตรงไหนคะ

<?php
header("Content-type: text/html; charset=tis-620");
header('Content-type: application/ms-word'); //การผลเป็นไฟล์ word
header('Content-Disposition: attachment; filename="รายงานหนังสือรับเข้าประจำวัน.doc"');
$host = "localhost";
$db_username = "root";
$db_password = "mypass";
$dbname = "ssc";
mysql_connect($host, $db_username, $db_password) or die(mysql_error());
$sql = "select * from ebookreciever where daterecieve = '$_GET[daterecieve]' && timerecieve = '$_GET[timerecieve]'";
$dbquery = mysql_db_query($dbname, $sql);
require_once "include/tdate.php";
mysql_query("set NAMES tis620");
?><head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
</head>

<center>
<b><font size="5">รายงานทะเบียนรับหนังสือวันที่ : <?php echo "$edate"; ?></font></b>
</center>
<br>
<table width="825" border="0" align="center" cellpadding="1" cellspacing="1">
<tr bgcolor="#CCCCCC">
<td width="104"><div align="center"><font size="3"><strong>เลขทะเบียน</strong></font></div></td>
<td width="275"><div align="center"><font size="3"><strong>หัวเรื่อง</strong></font></div></td>
<td width="106"><div align="center"><font size="3"><strong>จาก</strong></font></div></td>
<td width="104"><div align="center"><font size="3"><strong>ถึง</strong></font></div></td>
<td width="116"><div align="center"><font size="3"><strong>ผู้ปฏิบัติ</strong></font></div></td>
<td width="101"><div align="center"><font size="3"><strong>หมายเหตุ</strong></font></div></td>
</tr>
</table>
<div align="center"></div>
<table width="829" border="0" align="center" cellpadding="1" cellspacing="1">
<?php while($result = mysql_fetch_array($dbquery)) {
$id =$result['id'];
$idr =$result['idr'];
$topic =$result['topic'];
$sendername =$result['sendername'];
$sendto =$result['sendto'];
$message =$result['message'];
?>
<tr>
<td width="833"><table width="825" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="104"><div align="center"><font size="2">
<?php echo "$idr"; ?>
</font></div></td>
<td width="275"><div align="left"><font size="2"><?php echo "$topic"; ?>
</font></div></td>
<td width="106"><div align="left"><font size="2"><?php echo "$sendername"; ?>
</font></div></td>
<td width="104"><div align="left"><font size="2"><?php echo "$sendto"; ?>
</font></div></td>
<td width="115"><div align="center"></div></td>
<td width="102"><div align="left"><font size="2"><?php echo "$message"; ?>
</font></div></td>
</tr>
</table>

</td>
</tr>
<?php } ?>
</table>



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-08-02 18:43:51 By : น้องเอ๋ View : 1678 Reply : 2
 

 

No. 1



โพสกระทู้ ( 581 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ที่อ่านภาษาไทยไม่ออก คือไฟล์ที่ คุณ attachment หรือป่าวครับ






Date : 2009-08-02 20:34:27 By : nilas
 


 

No. 2



โพสกระทู้ ( 4,726 )
บทความ ( 8 )



สถานะออฟไลน์


ผมตอบในกระทู้นี้ https://www.thaicreate.com/php/forum/029840.html

ลองไปแปลงเป็น tis620 ดูครับ
Date : 2009-08-02 21:39:21 By : mr.v
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ไม่เป็นภาษาไทยอ่ะค่ะ ??????? มันขึ้นงี้อะ mysql_query("set NAMES tis620");
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่