On Tuesday 28 January 2003 03:56, Scott Fletcher wrote: > Found a PHP bug, I'm using PHP version 4.2.3. I have been struggling with > why PHP code failed to work with the month is August or September, so I > have been playing around it and found the problem. I recently wrote a demo > script for you all to play around with. Let me know which PHP version does > this bug not affected you.... I'm going to file a PHP bug at > http://bug.php.net...... I'll let you know where PHP bug # is it. To tell > you the truth, I don't know how to search for existing bug on this one if > there is any because I don't know if it is an if-statement issue or if it > is something else.... Feel free to submit a patch if you know how. > > Let me know what you found and post it here... > > --clip--
[snip] > if ($month == 01) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 02) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 03) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 04) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 05) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 06) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 07) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 08) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } > if ($month == 09) { echo "It's a Match!!<br>"; } else { echo "It's > not a Match!!<br>"; } Have a look at the manual > Types > Integers -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I'm having a BIG BANG THEORY!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php