Sean101
Level 1
Write the reason you're deleting this FAQ
Thanks.
If you wanted to create the banner version in no particular order, you could put the image in a array with a number and a link in the second array with the same number as the image array. example below(no database)
[php]
$banner['images'] = array(
"1" => "http://www.example.com/image-1.png",
"2" => "http://www.example.com/image-2.png",
"3" => "http://www.example.com/image-3.png",
"4" => "http://www.example.com/image-4.png"
);
$banner['links'] = array(
"1" => "http://www.example.com/link-1.html",
"2" => "http://www.example.com/link-2.html",
"3" => "http://www.example.com/link-3.html",
"4" => "http://www.example.com/link-4.html"
);
$num = rand(1, count($banner['links']));
print $banner['images'][$num];//returns banner image
print $banner['links'][$num];//returns banner link
//If you want the image and url in HTML the variable is below.
$banner = "Are you sure you want to delete this post?
Sean101
Are you sure you want to delete this post?