Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I compare 3 variable images in the attached slot machine code and then if all 3 images match show an image, but if

How do I compare 3 variable images in the attached slot machine code and then if all 3 images match show an image, but if they do not match then show a different image. Can not use javascript. It must be php or html. The pictures are .png files as stated in the existing code

Welcome to Mohawk's Slot Machine

This a skeleton from which to start your work.

// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);

// spit an image tag echo ''; ?>

// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);

// spit an image tag echo ''; ?>

// random number to represent which of the 7 fruits we will show $fruit_num = random_int(1,7);

// spit an image tag echo ''; ?>

Start New Game!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions