Question: Create the Database PHP Class whose constructor connects to the oracle database. Database.php port = ' 8 9 8 9 ' ; $this - >
Create the Database PHP Class whose constructor connects to the oracle database. Database.php port; $thisuser'firstname'; $thispassword'firstname'; $thisoracledb'lastname; $pdo PDO::ATTRDEFAULTFETCHMODEPDO::FETCHNUM ; $db DESCRIPTION $thisportADDRESS PROTOCOL TCPHOST PORT CONNECTDATA SERVER DEDICATEDSERVICENAME $thisoracledb ; $thisconn new PDOoci:dbname$db$thisuser", $thispassword",$pdo; public function displaytest $result$thisconnqueryselect from myinfo"; $row$resultfetchPDO::FETCHASSOC; echo $rowFIRST$rowLAST; Create PHP script that executes the displaytest function as follows: test.php displaytest;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
