Sunday, 17 February 2013

Random images with php





<html>
<head>
<title>The Coder Tips | Random Images with php</title>
</head>
<body>
<?php

$rand = rand(1, 5);

if($rand == 1){
echo '<img src="1.jpg">';
}
if($rand == 2){
echo '<img src="2.jpg">';
}
if($rand == 3){
echo '<img src="3.jpg">';
}
if($rand == 4){
echo '<img src="4.jpg">';
}
if($rand == 5){
echo '<img src="5.jpg">';
}

?>
</body>
</html>



Thanks & Regards,

"Remember Me When You Raise Your Hand For Dua"
Raheel Ahmed Khan
System Engineer
send2raheel@yahoo.com
send2raheel@engineer.com
sirraheel@gmail.com
send2raheel (skype id)

My Blog Spot
http://raheel-mydreamz.blogspot.com/

No comments:

Post a Comment

what is Juice Jacking SCAM

  Juice Jacking is a cybersecurity threat that occurs when cybercriminals manipulate public charging stations, such as USB charging ports in...