I am a noob getting an error probibly quick fix.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jetpilot1999
Forum Newbie
Posts: 2
Joined: Sat Jan 23, 2010 9:25 pm

I am a noob getting an error probibly quick fix.

Post by jetpilot1999 »

Thanks for anyone that has taken the time to read this.

I am trying to get this simple little script to work on a phpbb forum page.

At the top of the phpbb page there is a <?php and at the bottom there is a close ?> with a lot of code in between. the page works fine.


I need to insert this into the top of the page to make my little script work <?php include("banners.php"); ?>

When I insert this onto the page the page goes blank. :banghead: What do I need to modify on this <?php include("banners.php"); ?> to make it work on the page.

Thanks for any help you can give.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: I am a noob getting an error probibly quick fix.

Post by AbraCadaver »

Try just:

Code: Select all

include("banners.php");
After the <?php that is already in the file.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
jetpilot1999
Forum Newbie
Posts: 2
Joined: Sat Jan 23, 2010 9:25 pm

Re: I am a noob getting an error probibly quick fix.

Post by jetpilot1999 »

Thanks I think this may have worked. At least the page didn't go blank.
Thanks again for the help.
Post Reply