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!
hi everybody.....how do i make the following code loop 5 times ...i've tried various while loops but can't make it do anything except loop indefinately..
I am guessing that you don't mean the whole code and that you just want to limit it to 5 loops. Probably than controlling your look would be to use the MySQL LIMIT keyword in your SELECT query.
neither of the above two replys answered my question....i'm including the output of the script so you can see what i want to repeat 5 times.....beachball lawnchair rubber boat speed boat fishing pole.....the script works fine with a single query or by looping it infinate times using ......while(1){ }
first of all yes i tried both ways you asked me to try....i probably have more computer technology education and know how than you......second it does it really matter if i put the } before mysql_close; since when it loops back to the top it reopens the connection?.......all I want is for the code to loop 5 times instead of infinate times....plz stop asking arbitrary questions and admit that you don't know how to make it loop 5 times.....i don't want my post filled with a bunch of crap.
Hold on I'm truly sorry for my last post..............the first explanation worked this morning....i must have had an error that i didn't catch yesterday.....plz forgive me for my php green thumb.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.3 wrote:13. A wide variety of opinions may be expressed on this public discussion forum. Respect positions which differ from your own. We like to see a vigorous intellectual discussion which proceeds politely and addresses the technical merits of different positions. Do not expect that anyone will alter their opinion of a topic regardless of however logical you believe your argument to be. Do not attack anyone personally for whatever reason - doing so contravenes the spirit in which this forum was founded and can have serious consequences.