PHP Windows 5.2.5 date problem using php_dblib.dll

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PhpDog
Forum Commoner
Posts: 58
Joined: Mon Jan 14, 2008 10:23 am

PHP Windows 5.2.5 date problem using php_dblib.dll

Post by PhpDog »

After finding that with PHP 5.2.5 mssql_field_name would only return the first 30 characters of the field, I installed php_dblib.dll and the problem was solved. But now I find that MS SQL Server 2005 dates are returned as

Oct 1960 12:00:00:000AM

whereas before I got the day also. How can I get the day please?
PhpDog
Forum Commoner
Posts: 58
Joined: Mon Jan 14, 2008 10:23 am

Re: PHP Windows 5.2.5 date problem using php_dblib.dll

Post by PhpDog »

Just found the mssql.datetimeconvert = Off section of php.ini which helped towards a solution.
Post Reply