Answered step by step
Verified Expert Solution
Link Copied!

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='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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

JonesandSmithseparatelyconductstudiestotest H0: =

Answered: 1 week ago

Question

Compare the different types of employee separation actions.

Answered: 1 week ago

Question

Assess alternative dispute resolution methods.

Answered: 1 week ago

Question

Distinguish between intrinsic and extrinsic rewards.

Answered: 1 week ago