View Single Post
Old 5th June 2008, 04:01 PM   #5 (permalink)
knapper
Senior Member
 
Join Date: Jun 2006
Location: Co. Durham
Posts: 111
Quote:
Originally Posted by bigbrennan View Post
OK I have fixed it, not sure why but 'echo include' was messing it up. Replaced it with 'include' and it now works fine:
The problem was in the initial version what you effectively had was this:

echo (so print out) include("banner_$random_banner_number.php");

What you wanted to do was not print out, but execute the function:

include("banner_$random_banner_number.php");

You dropped the echo function call and so PHP carries out the include function without interference.

Last edited by knapper : 5th June 2008 at 04:03 PM. Reason: Grammer
knapper is offline   Reply With Quote