Search
Left Quote    Choose a job you love, and you will never have to work a day in your life.
- Confucius    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: MYSQL Query Help
  This user is offline  BoricuaLayz
  Subject: "MYSQL Query Help" Posted: @ 9:53 pm on Jul 18 2008   
Member #: 356
Rank: User - (30)
Since: 06/25/07
Posts: 44
From: Florida

I have a query where I echo data from a table
what I want to do is after it displays 5 rows of data
I want it to display my ad code.
How would I go about setting this up?


    Viewed: 5,462 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: MYSQL Query Help" Posted: @ 5:25 pm on Jul 19 2008    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

You could simply include a count variable in your loop, and if count == 5 then display ad code.




-bs0d | AllSyntax.com

    Viewed: 5,445 Times | Reply to This | To top
  This user is offline  misterhaan
  Subject: "re: MYSQL Query Help" Posted: @ 3:12 pm on Jul 22 2008    

Member #: 5
Rank: User - (213)
Since: 02/11/05
Posts: 148
From: chair

after displaying the ad code you




please note that the above post is likely made up in its entirety.

    Viewed: 5,419 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: MYSQL Query Help" Posted: @ 12:02 am on Jul 23 2008    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

That would call for the ad every 5th result, which would be useful if you want to continue displaying ads.




-bs0d | AllSyntax.com

    Viewed: 5,412 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank