Somebody slap me.

I spent most of yesterday working on a nifty little php script for work…

When I was testing it, I was running into all sorts of odd behavior and I got tired of trying to de-bug it. I put it up on my website so I could work on it over the weekend.

I just spent the last hour or so breaking the script from a single php file into 6. I thought my scheme for having the different steps the script goes through as functions controled by a variable called $stage was somehow flawed, since in some cases I was making the script pass arguments back to itself via the URL. Or something – I wasn’t exactly sure what was wrong. It was buggy and needed to be fixed.

THEN I see that I’m using “=” instead of “==” to check what “stage” I’m on in the master control structure that determines which function to do.

OF COURSE the statement

if (stage = 1) {
} elseif (stage = 2) {

is going to always have me doing step 1…

GAH! I r stupid.

Now the question is, do I go back to my single php page design, or keep working on the multi-page one?

Edited on Oct 27th 2002, 07:49 by Hooloovoo

Edited on Nov 22nd 2002, 17:56 by Hooloovoo