Loop?

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
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

Loop?

Post by nite4000 »

hey all I dont have any code to this so I am looking to get some ideas of how the code would work.

I am creating this system like a surfing site but its not I basically want to read teh column "site_url" from table "site" and if possible I want to have it either ramdom pick like 15 sites or maybe view them all but if there is over 100 sites that a long time so I want to do it to 15 or 20 sites and then when at the end of that have it add money to there account which i know how to add money just i need to know where in this code to add that code if that makes sence.

I also need to set a timer like 10 seconds or something

I am pretty sure its a loop or maybe a while but I am not entirly sure.

If someone can help me out it would be a major help

Thanks
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Loop?

Post by requinix »

Yeah... That story has a bunch of missing pieces.

"Surfing site"? A "long time" to do what? Add what money to whose account? What's the timer for?
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

Re: Loop?

Post by nite4000 »

there are no missing parts I explained what I was trying to do. please re-read what I said AGAIN.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Loop?

Post by greyhoundcode »

nite4000 wrote:... if that makes sence.
Debatable 8O
internet-solution
Forum Contributor
Posts: 220
Joined: Thu May 27, 2010 6:27 am
Location: UK

Re: Loop?

Post by internet-solution »

nite4000 wrote:there are no missing parts I explained what I was trying to do. please re-read what I said AGAIN.
I read it three time ... but none the wiser :dubious:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Loop?

Post by John Cartwright »

nite4000 wrote:there are no missing parts I explained what I was trying to do. please re-read what I said AGAIN.
Clearly nobody understands what your trying to accomplish. I would suggest you write your post more clearly and in further detail.

Not to mention, if someone says they don't understand what your trying to do, generally nobody else will.
Post Reply