Results 1 to 4 of 4
  1. #1
    ABW Ambassador Doug247's Avatar
    Join Date
    January 18th, 2005
    Location
    DE USA
    Posts
    931
    I have a few scripts I use to pull and Display Info from a MySQL database. I now want to fill some of the space with Ads but they do not show up. I have tried using including html and PHP, I have also tried require_once but they still don't show up.

    Any help is greatly appreciated.

    Thanks,
    Doug
    Thanks,
    Doug

  2. #2
    ABW Ambassador Greg Rice's Avatar
    Join Date
    January 18th, 2005
    Location
    Ohio
    Posts
    4,889
    Can you tell us how you're trying to display ads? I've used a couple methods with PHP and mySQL. I use an include file, which is just an HTML style with the ad code and saved as PHP. This file does not have any HTML page property type tags, like <BODY>, <TITLE>, etc. I've also created a table for banner ads and displayed them with a query.
    Greg Rice Affiliate Program Management
    www.gocmc.com info(AT)gocmc.com | 330-259-1223

    Join us! - MiNeeds.com | DiscountCandleShop/CheeseSupply | Feng Shui Plaza

  3. #3
    Just Lurking
    Join Date
    January 18th, 2005
    Posts
    1,263
    Doug if your pulling them from a database you would just echo the data. No need to include or require.
    Lead, Follow or Get Out of the Way!

  4. #4
    Just Lurking
    Join Date
    January 18th, 2005
    Posts
    1,263
    One addendum:

    If that data contains PHP you might need to eval() it and might consider using output buffers if needed.
    Lead, Follow or Get Out of the Way!

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. PHP include not working in WP (all of a sudden)
    By mobilebadboy in forum Blogging, Mobile and Social Media
    Replies: 4
    Last Post: August 25th, 2011, 01:01 PM
  2. PHP question - include(file.php) with variables
    By teezone in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: September 4th, 2009, 04:54 PM
  3. PHP include bug?
    By ercole in forum GoldenCAN
    Replies: 10
    Last Post: April 27th, 2009, 03:28 PM
  4. what php include code do you use and...why?
    By Adrian in forum Programming / Datafeeds / Tools
    Replies: 23
    Last Post: February 28th, 2007, 01:03 PM
  5. php include with calendars script
    By jaynaud in forum Cusimano.com Scripts
    Replies: 1
    Last Post: April 8th, 2006, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •