Question
Create a web page containing images for movies available for rent (at least 8 movies), so that each time you visit the home page, you
Create a web page containing images for movies available for rent (at least 8 movies), so that each time you visit the home page, you see a different order of movies on the page. (Note: You can use your previous home page (from Assignment 2) if you would like, or create a new one. The movie images are required, all other information is optional.)
I have a webpage created, but I don't know how add these images and where they should be saved. Could you please show me an example and insert random images and show me where they should be saved in the computer? Also help me create the code for this part. Thank you.
This is my code:
error_reporting(0);
$movie = array("Fast and Furious 8"=>"1.99", "Madagascar"=>"2.99", "Accountant"=>"3.99 ","Jack Reacher"=>"5.99","Avengers : End Game"=>"7.00","The Last Samurai"=>"4.53","Captain America"=>"6.00");
asort($movie);
$averageRental=0;
foreach($movie as $key=>$value){
$averageRental+=$value;
}
$averageRental=round($averageRental/count($movie),2);
?>
foreach($movie as $key=>$value)
{
?>
Average Rental:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started