![]() |
How to handle multiple IF? Hi, I'm new in PHP thus need small help with his problem: - this is my current code: Code: <?php Code: <?php |
Re: How to handle multiple IF? You'd just use the "elseif" or "else if" statements over and over :) |
Re: How to handle multiple IF? Quote:
|
Re: How to handle multiple IF? You can try using the "switch" statement instead. PHP Code: |
Re: How to handle multiple IF? ^ Yep. Switch/case is usually best if you have a lot of conditions. It's hard to tell exactly what you're trying to do with your code though, because the forum strips out a lot of PHP code when you put it inside "CODE" tags. Since you don't have much code... if you post your code without using any of the forum "tags", we'll be able to help you better. Or use something like Pastebin.com, and link to it. |
Re: How to handle multiple IF? Thank you wayfarer, it was exactly what was needed. |
| All times are GMT -6. The time now is 08:34 AM. |