Dear ,
i am trying to use php with MS SQL 2005.
while i am trying connect using follwing code and inserting arabic data using quey then it stores the arabice data in database as garbase. can any one suggest me abt this problem?
i solved this proble by using mysql_query("SE T NAMES utf8"); is there any similar anything in MS SQL server?
[code]
$myServer = "10.0.120.5 8";
$myUser = "sa";
$myPass = "123456";
$myDB = "POSSQL";
//connection to the database
$dbhandle = mssql_connect($ myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
$dbSelect = mssql_select_db ("$myDB")or die("Cannot select DB");
if(!$dbhandle)
{
echo "Not connectd to MSSQL DB";
}
i am trying to use php with MS SQL 2005.
while i am trying connect using follwing code and inserting arabic data using quey then it stores the arabice data in database as garbase. can any one suggest me abt this problem?
i solved this proble by using mysql_query("SE T NAMES utf8"); is there any similar anything in MS SQL server?
[code]
$myServer = "10.0.120.5 8";
$myUser = "sa";
$myPass = "123456";
$myDB = "POSSQL";
//connection to the database
$dbhandle = mssql_connect($ myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
$dbSelect = mssql_select_db ("$myDB")or die("Cannot select DB");
if(!$dbhandle)
{
echo "Not connectd to MSSQL DB";
}
Comment