Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
$conn = odbc_connect('Driver={Oracle in OraClient12Home1};Dbq=your_dbq;Uid=your_username;Pwd=your_passw;', 'your_username', 'your_passw');
if (!$conn) {
die("Connection could not be established.");
}
$sql = "SELECT column1 FROM table1 WHERE column1 = xxx;";
$result = odbc_exec($conn, $sql);
$number_rows = odbc_num_rows($result);
echo odbc_num_rows($result);
if ($number_rows > 0) {
while(odbc_fetch_row($result)){
echo odbc_result($result,"CREATED");
}
}
else
{
echo "no records found";
}
odbc_close($conn);
?>
</body>
</html>
The most helpful PHP solutions