Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   View Active Promocodes Plugin (http://www.mysidiaadoptables.com/forum/showthread.php?t=1792)

Hall of Famer 01-24-2011 11:50 AM

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

HIddenPanda 01-25-2011 05:10 PM

I saw this error last night and was planning on uploading a fixed admcodes.php tonight


All times are GMT -5. The time now is 03:01 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.