Question: Write a PHP code that read the data from the tblActor table, and generate a JSON response similar to the following format. Name the PHP

 Write a PHP code that read the data from the "tblActor"

Write a PHP code that read the data from the "tblActor" table, and generate a JSON response similar to the following format. Name the PHP file "ViewAllActors.php". {"actors": [{"name": "Brad Pitt", "description": "Brad Pitt is an American actor and film producer. He has received a Golden Globe Award, a Screen Actors Guild Award, and three Academy Award nominations in acting categories", "dob": "December 18, 1963", "country". "United States", "image": "http: \\\tors.com\\brad.jpg"}, {"name": "Tom Cruise", "description": "Tom Cruise, is an American film actor and producer. He has been nominated for three Academy Awards and has won three Golden Globe Awards.", "dob": "July 3, 1962", "country": "United States", "image": "http: \\Actors.com\\tom.jpg"}', {"name": "Angelina Jolie", "description": "Angelina Jolie is an American actress, author. She has received an Academy Award, two Screen Actors Guild Awards, and three Golden Globe Awards.", "dob": "December 18, 1963", "country": "United States", "image": " http: \\lActors.com\\angelina.jpg"}]}

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!