![]() |
Help with PHP "If" statement needed What is wrong with this code? It's breaking my page. if ($i >= 35) $1 = 34 ; I want $i to max out at 34 |
Re: Help with PHP "If" statement needed Going by what you typed: if ($i >= 35) $1 = 34 ; Should be if ($i >= 35) $i = 34 ; You have a variable of $1 instead of $i. |
Re: Help with PHP "If" statement needed Quote:
I redid it and added brackets, so I'll bet I corrected it without even realizing the error. I'm now using ... if ($i >= 35) { $i = 34 ; } and it is working. Don't know if the brackets helped or wer indifferent. I'm betting on the indifferent after viewing your solution. I am so ashamed. Sigh. Thanks a bunch. |
| All times are GMT -6. The time now is 04:49 AM. |