View Single Post
Old 07-30-2012, 02:48 AM   PM User | #5
leifbaker
New to the CF scene

 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
leifbaker is an unknown quantity at this point
Ok.
I'm no php whiz, I'm a designer.
But here's my script:

<?php
$total = "1";
$file_type = ".jpg";
$image_folder = "images/rotate2";
$start = "112";
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
$url = "pics/pic_" . $random . '.php';
echo "<a href=\"$url\" target=\"_blank\"><img src=\"$image_folder/$image_name\" /></a>"
?>

Do you know how I can fix it to make it 5.3 compliant?

Thanks for the help.
leifbaker is offline   Reply With Quote