Quote:
Originally Posted by myneid
actually i take that back, dont do the $count-1
instead cahnge this line to this
header("location:" . $urls[$random-1]);
|
nope, that can result in -1 your first suggestion was ok
replace
$random = rand(0,count($urls));
with
$random = rand(0,count($urls)-1);