Question: Q 7 . Given the following PHP program: cdots. . print FORM method = post action = $; . . . $allresult = $d
Q Given the following PHP program:
cdots.
print FORM method "post" action $;
$allresult $dgetAllSELECT Pnumber, Pname FROM PROJECT, DEPARTMENT WHERE
Dname AND Plocation AND Dnum Dnumber',
print "projects controlled by department and project location is located at : In
foreach
print "project number:
a Fill in the blanks of and
b Fill in the blanks of and
Q Assume that the array variable $advising is associative, and each element in $advising associates a student name key with the advisor of the student value Suppose that the associations of students and advisors are as follows. 'John' is the advisor of 'Kevin'; 'Darrel' is the advisor of 'Tim'; 'Jack' is the advisor of 'Mary'.
a Write a PHP statement to assign the studentadvisor associations to the array variable $advising.
b Write a PHP program looping through all the elements in Sadvising using the foreach construct, and printing the employee name and supervisor name of each element on a separate line.
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
