Hi, I'm new in PHP thus need small help with his problem: - this is my current code:
How to handle multiple IF?
6
Hi, I'm new in PHP thus need small help with his problem:
- this is my current code:
I'm PHP newbie and that's why I choose IF statement. But it isn't (probably) enough. I need something like this:
May you help me a little bit, please?
- this is my current code:
Code:
<?php
= 'Text string 0 - ultimate info';
= 'Text string 1';
= 'Text string 2';
= 'Text string 3';
= 'Text string 4';
= 'Text string 5';
if ([100]) { print ; }
else if ([101]) { print ; }
else { print ; }
?> Code:
<?php
= 'Text string 0 - ultimate info';
= 'Text string 1';
= 'Text string 2';
= 'Text string 3';
= 'Text string 4';
= 'Text string 5';
...
if ([100]) { print ; }
if ([101]) { print ; }
if ([102]) { print ; }
if ([103]) { print ; }
if ([104]) { print ; }
...
else { print ; }
?> - Joe Crosbie
- [1] reply
- jzeleny
- wayfarer
- [ 1 ] Thanks
- [1] reply
- Brandon Tanner
- jzeleny
Next Topics on Trending Feed
-
6