Question: web design- php course Consider the following records from database table Artworks: 17 345 The Death of Marat David 1793 400 The School of Athens

Consider the following records from database table "Artworks": 17 345 The Death of Marat David 1793 400 The School of Athens Raphael 1510 408 Bacchus and Ariadne Titian 1520 425 Girl with a Pearl Earring Vermeer 1665 438 Starry Night Van Gogh 1889 Having the following webpage "artwork.php" hosted in the 345 folder at UoB site with a LAMP stack: setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION) $sql = "SELECT FROM ArtWorks WHERE ArtWorkID = id; $stat = $pdo->prepare($sql); $stat->bindValue(":id", $_GET["id"]); $stat->execute(); $a = new Artwork( $stat->fetch() DE echo ID: $a->ArtWorkID ** $a->Title M $a->Artist: $pdo = null; catch (PDOException $e) { ANAMA setAttribute(PDO:: ATTR_ERRMODE, PDO:: ERRMODE_EXCEPTION); $sql = "SELECT * FROM Artworks WHERE ArtWorkID - :id": $stat - $pdo->prepare($sql); $stat->bindValue(":id", $_GET["id"]); $stat->execute(); $a = new Artwork( $stat->fetch()); echo "ID: $a->ArtWorkID $8->Title $a->Artist; $pdo = null; } catch (PDOException Se) { die( $e->getMessage()); ?> What is the output when the webpage is accessed via the following URL? http://www.uob.edu.bh/345/artwork.php?id=400 For the toolbanoress ATE 10/PLATENEO (Mad) MacBook Pro
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
