Help - Search - Members - Calendar
Full Version: Repeating An Action X Times
Invision Power Services > Community Forums > Community Web Design and Coding
Eric.
Is there any way with PHP to have an action (Such as a Database Insert) repeated X times within one block of code without having to refresh the page? If so, how?


Thanks! smile.gif
Digi
CODE
for( $i=0; $i < $x; $i++)
{
    //code you want to loop
}


Obviously setting x to the amount of loops + 1
Eric.
QUOTE(Digi @ Aug 2 2006, 08:36 PM) *
CODE
for( $i=0; $i < $x; $i++)
{
    //code you want to loop
}


Obviously setting x to the amount of loops + 1

Thank You! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.