I'm struggleing with how to get my DSN for an odbc connection that is over a network (i.e. on another drive). The database I'm trying to connect to is an Access database and does not have a username or password required to connect to it. However, I'm not sure what DSN I should be using to connect to it. If anyone can help me with this I would GREATLY appreciate it. I'll post my code below:
//Access connection
$access = odbc_connect('','','');
//MySQL connection
$msql = mysql_connect('localhost','root','');
//Open connection to Access Database
if ($linkID == false){
print "The connection to the Access database failed.";
}else{
print "The connection with the Access database was made successfully.";
//Open connection to MySQL Database
if($linkID == false){
print "The connection to the MySQL database failed.";
}else{
print "The connection with the MySQL database was made successfully.";
}
}
odbc_close($access);
mysql_close($msql);