View Single Post
Old 5th June 2008, 02:30 PM   #4 (permalink)
bigbrennan
Registered User
 
Join Date: Jan 2006
Posts: 8
OK I have fixed it, not sure why but 'echo include' was messing it up. Replaced it with 'include' and it now works fine:

Before:
PHP Code:
<?php
$banner_min 
1;
$banner_max 2;
$random_banner_number rand($banner_min$banner_max);
echo include(
"banner_$random_banner_number.php");?>

After:

Before:
PHP Code:
<?php
$banner_min 
1;
$banner_max 2;
$random_banner_number rand($banner_min$banner_max);
include(
"banner_$random_banner_number.php");?>
bigbrennan is offline   Reply With Quote