Hi all,
I am having problems getting PHP to work with MSSQL Server.
Using PHP Version 4.3.11
What do I have to change on the php.ini file? I uncommented extension=php_mssql.dll but then all websites using mysql stopped working.
Is the sql code pretty much the same as for mysql? Here's an example:
$query = "select * from admin where username = '$username'
and password = '$password'";
$result = mssql_query($query) or die(mssql_error());
if (mssql_num_rows($result)>0)
{
// if they are in the database register the user id
$HTTP_SESSION_VARS['valid_user'] = $username;
}
Any ideas?
Thanks.
Kevin.