Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
// or use OraHome92 how you need
$conn = odbc_connect('Driver={Oracle in OraClient12Home1};Dbq=your_database;Uid=your_username;Pwd=your_password;', 'your_username', 'your_password');
if ($conn) {
echo "Connection established.";
} else{
die("Connection could not be established.");
}
?>
</body>
</html>
// with connection close
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
// or use OraHome92 how you need
$conn = odbc_connect('Driver={Oracle in OraClient12Home1};Dbq=your_database;Uid=your_username;Pwd=your_password;', 'your_username', 'your_password');
if ($conn) {
echo "Connection established.";
} else{
die("Connection could not be established.");
}
odbc_close($conn);
?>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408