Question: Make the list in books.php print out Yes or No dependent on whether the instock value is 1 or 0 look at the code in

 Make the list in books.php print out Yes or No dependent

  • Make the list in books.php print out Yes or No dependent on whether the instock value is 1 or 0 look at the code in bookview.php to see how to achieve this.

Books

query("SELECT * FROM books", PDO::FETCH_ASSOC); foreach ($results as $row) { print(""); print(""); print(""); print(""); print(""); print(""); print(""); }; ?>
Book id Title Publisher Price In stock
" . $row['bookid'] . "" . $row['title'] . "" . $row['publisher'] . "" . $row['price'] . "" . $row['instock'] . "

O) Not Secure alamoum4x10host.com/W8/EXERCISE%202 books.php Books Book id Title Publisher Price In stock War and Peace Anna Karenina Doctor Who and the F New English Library New English Library 12.99 11.99 7.99 s of Mars arget

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!