Topic awaiting preservation: PHP help (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Stl, MO, USA |
posted 01-26-2003 02:54
Im trying to add images to the ranking of the clan according to the streak but... they all show up hot? suggestions? |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 01-26-2003 03:22
Duck: I must admit this felt like I was reading a foreign language: quote:
code: if ($streak > 4) {
|
Maniac (V) Inmate From: under the bed |
posted 01-26-2003 03:23
On top of which the $steak variable in there probably isn't helping much.... |
Paranoid (IV) Inmate From: Stl, MO, USA |
posted 01-26-2003 03:44
ok lol now they are all cold... |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 01-26-2003 04:05
Duck: It will if there is something else wrong with your script and we'd really need to see where you are getting the $streak variable from. |
Paranoid (IV) Inmate From: Stl, MO, USA |
posted 01-26-2003 04:10
The streak is from the last games played like if u lost u are -1 |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 01-26-2003 04:48
Duck: I'm putting the kettle on to make a nice big mug of hot choclate and am then sneaking off to bed but I'm online now if you want to hit me with that script (numbers in the profile). |
Paranoid (IV) Inmate From: Stl, MO, USA |
posted 01-26-2003 04:55
hmmm howcome i cant see you... |
Paranoid (IV) Inmate From: Milwaukee |
posted 01-26-2003 19:30
For anyone who's following along at home, it turns out that the IF block using the $streak variable happened before $streak had been filled from the database. We put that block after the query that assigns $streak, and suddenly it all works like a charm. |