PHP make connection into oracle database odbc php - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

How to make the connection into oracle database using ODBC client with PHP ?


 157

PHP


1

<!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>


By     Created   
The power of the user (%)
10%

PHP


1

// 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>


By     Created   
The power of the user (%)
13%



The most helpful PHP solutions

detect browser phpdetect browser phpPHP

Click to see more ...

  3.9K     394

create QR code phpcreate QR code phpPHP

Click to see more ...

  2.6K     286

create relative date phpcreate relative date phpPHP

Click to see more ...

  1.7K     251

drag and drop upload file using phpdrag and drop upload file using phpPHP

Click to see more ...

  2.2K     249

delete array item phpdelete array item phpPHP

Click to see more ...

  2K     238

detect ie phpdetect ie phpPHP

Click to see more ...

  1.3K     212

get current url phpget current url phpPHP

Click to see more ...

  1K     189

Get real client country using php ?Get real client country using php ?PHP

Click to see more ...

  706     172

detect speed internet phpdetect speed internet phpPHP

Click to see more ...

  690     130

get meta tag phpget meta tag phpPHP

Click to see more ...

  682     129