connectivity
Posted: Mon Feb 06, 2006 6:48 pm
Jcart | Please use
I added the database in my ODBC settings in the Control Panel. I know the password's right. Any ideas?
Thanks,
Jason
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Any idea what might be wrong here?Code: Select all
<?php
$dbConnection = NULL;
$dbName = 'webd';
$dbUser = NULL;
$dbPassword = '-------';
if (!($dbConnection = @ odbc_connect($dbName, $dbUser, $dbPassword))) {
echo('Could not connect to the database.');
}
?>Thanks,
Jason
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]