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,027

HOME > PHP > PHP Forum > PHP Sql Server Show Lao Font With Problem (The result is ?????????????) that i use mssql_connect()



 

PHP Sql Server Show Lao Font With Problem (The result is ?????????????) that i use mssql_connect()

 



Topic : 121472



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



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



Hi. Any body help me please..Now i codding in php select data from sql server that i use mssql_connect() and mssql_query(), the data in sql server database is "ໝູປີ່ນ/Pig Bakking Size 0.5g ໝູປີ່ນ/Pig Bakking Size 0.5g" but the result is like the below image

f

Thank you very much and best regard...



Tag : PHP, Ms SQL Server 2012









ประวัติการแก้ไข
2016-02-18 01:02:21
2016-02-18 01:03:43
2016-02-18 01:10:39
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2016-02-18 00:57:26 By : linouk View : 1454 Reply : 5
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

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

Config data type using NVARCHAR()






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-02-18 06:16:11 By : mr.win
 


 

No. 2



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



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

Yes that column i had create by using data type Nvarchar() like below image

aa


But i don't know how to set chatterer set in the PHP code


Thank you..!
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-02-18 08:54:15 By : linouk
 

 

No. 3



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

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

Code
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-02-18 09:10:00 By : mr.win
 


 

No. 4



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



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

I think that code i had already putted as below but not worked for lao font

The below code for connect database

Code (PHP)
<?php ob_start(); ?>
<?php
	$ServerName = "LINOUKSOFT";
	$UserName = "sa";
	$Password = "linouk992.smf";
	$conn = mssql_connect($ServerName, $UserName, $Password);
	if($conn)
	{
		//echo "Server Connected...!";
		mssql_select_db("RestaurantManagementSystem");
	}
?>


The below code for Show Product info

Code (PHP)
<?
include_once("ConnectionInfor.php");
$SQL = "SELECT * FROM TB_Product WHERE Product_ID = '$Product_ID' ";
$Query = mssql_query($SQL) or die ("Error Query [".$SQL."]");
$Result = mssql_fetch_array($Query);
echo $Result["Product_ProductImage"];
?>



The below code for Show Product info

Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Customer Service</title>
<link href="CSS/Services.css" rel="stylesheet" type="text/css" />
</head>
<body  onload="noBack();"onpageshow="if (event.persisted) noBack();" onunload="">
<form id="form1" name="form1" method="post" action="">	
<?php
	include_once("ConnectionInfor.php");	
	$SQL = "SELECT Product_ProductImage, Product_ID, Product_NameLao FROM TB_Product";
	$Query = mssql_query($SQL) or die ("Error Query [".$SQL."]");
?>
<table style="font-size:50px; font-family:'Phetsarath OT'; text-align:left; color:#FFF; background-color:#607D8B" width="970" border="1" cellpadding="0" cellspacing="0">
	<tr>
		<th width="200" style="background-color:#424242"> <div align="center">ຮູບເມນູ</div></th>
		<th width="152" style="background-color:#424242"> <div align="center">ລະຫັດ</div></th>
		<th width="513" style="background-color:#424242"> <div align="center">ລາຍລະອຽດເມນູ</div></th>        
		<th width="95" style="background-color:#424242; text-align:center;"> <div>$$$</div></th>
	</tr>
<?  while($objResult = mssql_fetch_array($Query))  { ?>
<tr>
	<td><center><img width="300" height="250" src="ServicesImageView.php?Product_ID=<?php echo $objResult["Product_ID"];?>"></center></td>
	<td style="font-size:50px; font-family:'Phetsarath OT'; text-align:left; color:#000000;"><div align="center"><?php echo $objResult["Product_ID"];?></div></td>
	<td style="font-size:40px; font-family:'Phetsarath OT'; text-align:left; color:#000000;"><?php echo $objResult["Product_NameLao"];?></td>
	<td style="font-size:40px; font-weight:bold; font-family:'Phetsarath OT'; text-align:center; color:#F00;"><a href="PHPSqlShowData.php">ສັ່ງ</a></td> 
</tr>
<? } ?>
</table>
<a href="<?php echo $logoutAction ?>" style="font-family:'Phetsarath OT'; font-size:70px; width:550px; height:100px; color:#FFC107; margin-left:350px;">Log out</a>
</form>
</body>
</html>



Then how do i set to read lao font correctly



Thank you all friend..! i hop you can help me and i'm now really to know that how to show lao font correctly
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-02-18 13:26:47 By : linouk
 


 

No. 5



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

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


แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2016-02-18 13:31:39 By : mr.win
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : PHP Sql Server Show Lao Font With Problem (The result is ?????????????) that i use mssql_connect()
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 04
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 อัตราราคา คลิกที่นี่