ads added to my search engine site

Discussion in 'PHP' started by lauriesavon, May 6, 2010.

  1. #1
    I am making a search site and want to know how to ad ads to the results well i know how just can not find out where i have been trying for 2 days now.If i send you the code can you try to see for me please and thanks or even tell me how to make the search results smaller and i will add the ads on the outside right hand side.Thanks
     
    lauriesavon, May 6, 2010 IP
  2. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #2
    have you already got the results paginated? I mean if you have, then all you have to do really is add a simple variable into the echo'ing of the results, and then sort out the frequency of how often you want the advertisements to be mixed with your results. Now between each echo, you can add 1 to the variable (e.g. $i++;) and then when it meets the criteria, echo out the add.

    E.g.

    Check value of $i, if the value is enough for the ad frequency, echo the ad
    Echo out next result
    $i++; to increase the value of your variable by 1

    This is as helpful as I can get without seeing your code
     
    Grit., May 7, 2010 IP
  3. lauriesavon

    lauriesavon Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you send me your email i will send you the page code thanks
     
    lauriesavon, May 7, 2010 IP
  4. live.co.uk

    live.co.uk Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    just give us the source and detailed info
     
    live.co.uk, May 7, 2010 IP