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='8989'; $this->user='firstname'; $this->password='firstname'; $this->oracledb='lastname1'; $pdo=[ PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_NUM ]; $db ="(DESCRIPTION = $this->port))(ADDRESS =(PROTOCOL = TCP)(HOST =10.0.2.15)(PORT =(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = $this->oracledb)))" ; $this->conn = new PDO("oci:dbname=".$db,"$this->user", "$this->password",$pdo); } public function displaytest(){}}?> $result=$this->conn->query("select * from myinfo"); $row=$result->fetch(PDO::FETCH_ASSOC); echo $row["FIRST"]."".$row["LAST"]; 2. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!