Getting NULL as empty strings in PHP from ms sql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Atiq
Forum Commoner
Posts: 26
Joined: Thu Feb 19, 2004 5:23 am

Getting NULL as empty strings in PHP from ms sql

Post by Atiq »

I am running ms sql procedure from php. I first ran this procedure directly on the ms sql query analyzer and got NULL values as NULL.
But when i ran it through PHP i got empty strings instead of NULL values.
Due to which i am getting some wrong values.
I want PHP to treat NULL as NULL for ms sql.
Please somebody help!
It is urgent!
Post Reply