By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,346 Members | 2,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,346 IT Pros & Developers. It's quick & easy.

why MSSQL SERVER return question marks, when I execute query in PHP?

mikheil09
P: 2
My Databese server is MSSQL SERVER and I connect to it with PHP's PDO class, connection is successful but when I execute query I receive question marks for all text type fields.

I have "UTF-8" in HTML Charset, My database collation is "Latin1_General_BIN" and fields type is nvarchar(50).

If you have some solition for this problem, please reply.
Oct 4 '11 #1
Share this Question
Share on Google+
3 Replies


omerbutt
100+
P: 638
have you tried using sql_srv extention for mssql in php i used it and didnt had any problems reading any field type in mssql 2010
Oct 4 '11 #2

mikheil09
P: 2
Thank OMERBUTT you are right. I'm very happy....
Oct 4 '11 #3

omerbutt
100+
P: 638
my pleasure mikheil09 :) , glad to help please do choose the post as the best answer whenever you find the right solution from any of the users :) , it would help any other user who is having the same problem.
regards,
Omer Aslam
Oct 5 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.