Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started