If function
Posted: Fri Jan 16, 2009 11:14 am
Hey, I have a question that should probably be easy for those of you who know php. As for myself I'm a newbie
, and none of the tutorials I've found seem to answer this question:
I have a function that if it counts to 1 it generates some HTML code:
What I want is for the same thing to happen if it counts to 2. I've figured out how to do this with an elseif, but it seems a waste of code. Anybody want to help me out?
I have a function that if it counts to 1 it generates some HTML code:
Code: Select all
if ($count == 1) :