Dudeking
07-04-2006, 02:12 PM
I am currently working on my site, but I have never created an array with PHP before.
What I need is an UP and DOWN button to change between three php require() commands.
Basically the logic I want is below but I am not sure of the correct syntax.
Down = if array < 2 then array = array+1
else array = 0
Up = if array > 0 then array = array-1
else array = 2
What I need is an UP and DOWN button to change between three php require() commands.
Basically the logic I want is below but I am not sure of the correct syntax.
Down = if array < 2 then array = array+1
else array = 0
Up = if array > 0 then array = array-1
else array = 2