weird error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

the login is set by cookies, so youll have to go to http://sspn.stormystudios.com/index.php?action=register to register, and then ?action=logins to login.

Do you want me to post the full code?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Do you want me to post the full code?
Not sure to be honest ;)
You definetly have logic problems that will require seeing the full code, just not sure i can handle any more if/else blocks ;)
Might as well post it if it's not too big, or even better copy index.php to index.phps so we can see the code online.
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

ive uploaded it to http://sspn.stormystudios.com/index.txt, as it is 301 lines long. (good luck lol)

btw, your up early for a fellow englishman. ive been up all night...its summer holidays for me, i sleep all day and am awake all night.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

oooook. Without being too cruel, that might be the worst piece of PHP code i've ever seen. After about 20 minutes of going through indenting it i tried to stab my eyes out with my mouse.
Anyway, onto something more constructive ;)
I wouldn't carry on with what you have, it's so wrong it i could hardly find a line that was correct, so it needs rewriting, and i'm going to do it for you :o
Let me know if you'de rather continue hacking your way through that pile of 'code' and i won't bother rewriting it, but i can't even begin to start telling you how to fix that existing code, it's too far over to the dark side. ;)
Sorry if i'm being a bit blunt but i feel it's better to stop you now before you do someone some serious damage with your code.
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

lol. i thought as much. i have only been learning for 3 days...
your not cruel, your telling the truth, and i know i am a noob at PHP.

by all means, please re-write the code, although it works ok for me...
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

how goes the taming of the beast?
Post Reply