As of right now, I do not have the code set up to give me a specific reason for the error; just a simple JavaScript alert saying whether it works or not.
Here is the code that is not working. Any suggestions would be greatly appreciated.
- Code: Select all
$conn = mssql_connect( 'STONEHENGE\MSSQLSERVER', 'username', 'password');
if( $conn ) {
$statusMsg= "Database connection works.";
}else{
$statusMsg= "Database connection is NOT working.";
}
Thanks,
^_^