![]() |
Newbiee Gah
Seriously.. I'm going NUTS :|
Mom wants me in bed, but I wanna get this script to work, but it doesn't and I'm stressed, and I can't for the love of god(!!!) find the error. php Code:
Yes, it's a really basic script. I'm only using it for a small site, so I don't use a user system in the database. I store the admin password and the username in the config. The messages are in swedish, but I'm pretty sure you can figure out what they mean based on the coding. The error is that I login, and it echo's "You are logged in, click her to add a protocol", and when I do that, the PHP Code:
I actually even check before it links me to the same page, that the session is set, and it only echoes the "you are logged in.." if the session is set. Yet, it doesn't work. When I'm logged in, and click the link, I still get to see the login form -.- I know this is a very.. insecure script. But it's really a SMALL website, and the ones that are viewing it, doesn't have a clue what website programming is, nonetheless hacking. So yea... Anyways, please help me :((( You are my only hooooope xD haha |
First of all,you keep repeating <?php,you need to use this one.
I can't really say what's wrong since I don't speak your language but this is at least what I can say: PHP Code:
PHP Code:
|
In addition to Swordbeta's post, I don't see a
session_start() call in that script:php Code:
|
Quote:
THe query was no problem :) It's working ^^ Quote:
|
| All times are GMT. The time now is 01:17 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0