Question: Suppose we have a database DB on (localhost) sever, (root) user name, and password, and we have table under that database EMP what the output

 Suppose we have a database DB on (localhost) sever, (root) username, and password, and we have table under that database EMP whatthe output for below code emp table Emp_Id Name address Sal 1000

Suppose we have a database DB on (localhost) sever, (root) user name, and password, and we have table under that database EMP what the output for below code emp table Emp_Id Name address Sal 1000 Ali Amman 700 2000 Mai Aqaba 800 3000 Muna Amman 600 4000 Hatem Madab 700 setAttribute(PDO-ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException Se) { //echo "not connected "$e->getMessage(); die('cannot connect to DB'); } $query ="SELECT * FROM emp"; $stmt = $pdo-prepare(squery); Ssuccess = $stmt->execute(); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ echo Srow[1] . Srow(2). '; ?> Select one: O a. all data in emp will display O b. Amman 700 Aqaba 800 Amman 600 Madab 700 O c. 1000 2000 3000 4000 Ali Mai Muna Hatem d. Ali Amman Mai Aqaba Muna Amman Hatem Madab DB name: data Table name: Student Std_ID Major Average A1000 CIS 80% Std_Name Ali Ahmad Ayman Hani Muna Mahmoud B2000 CS 81% C3000 NW 79% setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException Se){ die('cannot connect to DB'); } $query="SELECT * FROM student'; $stmt = $pdo-prepare($query); $success = $stmt->execute(); while($row = $stmt->fetch(){ echo $row[3]. Srow(2).' '; } ?> a. O a Records containing the following columns: Major, std_Name b. "Records containing the following columns: Std_id, Major O C. Records containing the following columns: Major, Average Records containing the following columns: Average, Major Write the output for this program =1;Sj--){ echo "**; } echo

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!