Jump to content

[SOLVED] images with if elseif


Milbea

Recommended Posts

I'm in the process of making a random chance game. How can I make the different outcomes have their own picture?

 

Here's the code:

 

<?php;

 

srand((double)microtime()*1000000);

$numb=rand(0,100);

 

if ($numb>=75)

echo "Big Win";

 

elseif ($numb<=50)

echo "lose";

 

else

echo "dude";

 

 

 

?>

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/65849-solved-images-with-if-elseif/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.