| | #1 |
| Grouchy Old Geezer War Room Member Join Date: 2006 Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 673
Thanks: 279
Thanked 62 Times in 47 Posts
|
What is wrong with this code? It's breaking my page. if ($i >= 35) $1 = 34 ; I want $i to max out at 34 |
| "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice." Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781) | |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2009
Posts: 145
Thanks: 3
Thanked 48 Times in 24 Posts
|
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. |
| | |
| |
| The Following User Says Thank You to 723Media For This Useful Post: |
| | #3 | |
| Grouchy Old Geezer War Room Member Join Date: 2006 Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 673
Thanks: 279
Thanked 62 Times in 47 Posts
|
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. | |
| "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice." Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781) | ||
| |
|
| Bookmarks |
| Tags |
| help needed, needed, php, statement |
| |