Code: Select all
<?php
$ban1 = "apple.jpg";
$url1 = "http://www.apple.com";
$ban2 = "orange.jpg";
$url2 = "http://www.orange.com";
$ban3 = "banana";
$url3 = "http://www.banana.com;
$randomNum = rand (1,3);
$image = ${'ban'.$randomNum};
$url= ${'url'.$randomNum};
Print "<a href=".$url." mce_href=".$url." target=\"_blank\" ><img src=".$image." border=0 class=\"thumbs\" width=\"180\" height=\"135\"></a>";
?>Code: Select all
td><?php include("image_thumbs.php"); ?></td>Does any one have any suggestions how i could get around this?
Cheers,
Malloy