View Single Post
  #11  
Old 01-24-2011, 11:50 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 586,276
Hall of Famer is on a distinguished road
Default

True, I agree with what Kaeliah said above. To loop through an array, use the following syntax below:

PHP Code:
for each($array as $temp){
//your codes here

This way every element within the array is stored as a temporary variable called $temp. Once a single loop is executed, it will repeat the same thing for the second loop, and the value stored in $temp is changed to the second element in your array. I will post a tutorials on how to use Arrays when I have time, but for now we need tutorials for conditional branches and functions first.

Hall of Famer
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote