Question: Create a PHP page called selectEvents.php. This page will use and SQL SELECT query pull all of the events on your events table. It will

Create a PHP page called selectEvents.php. This page will use and SQL SELECT query pull all of the events on your events table. It will display them in a table on the page. If there is nothing in your table it will display a message for your client. The page will do the following: Connect the page to your database using the dbConnect file. Create an SQL SELECT command in PDO that uses Prepared Statements to pull all the events from your events table. Process the SQL command and create a result. It will include error handling in case your SELECT fails to run properly or the table is empty. Use a PHP loop to process each row in the result. Format each row from the result into an HTML table row. Display the final results to the client. Incorporate MVC concepts.

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!