|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||||
|
|||||
|
Alright....well, I've encountered a little trouble when I was trying to set up the 'Building a Members Area' script...I set up the tables in mySQL db, and the files variables.php, register.php, and, of course, index.php all work fine. However, in the index file, when I try to call to see whether or not someone is logged in I get two errors that read as the following:
Quote:
and also, Quote:
On line 187 of class.security.php, it begins the following session: PHP Code:
ADDITIONALLY, when I attempt to access Login.php, I am presented with the following: Quote:
and on line 126, I have: PHP Code:
Please help me...if you need any further info on how I have messed up the script (so that you can further help lol) then PLease ask...thank you very much, and im sorry for writing so much! P.s., if you need me to attach a text file to another post within this thread containing one of the messed up files (that was my fault) please ask me and i well definitly do so, thank you again. |
|
#2
|
|||
|
|||
|
Firstly welcome to the forums..
ok now with your problems.. What happening in the first instance is that you are outputting the header before you call the function. Make sure that your not printing out any html or leave any whitespace before you call the class functions. This is very important. 2nd problem. That line of code looks fine. Could you send me the code of line BEFORE that. Id say that has the error in it. Also from the sounds of it. you sound like a beginner in php. And i did say in the article that you will need a intermediate level of php. Having said that, im not stoping you, its just you may not understand how things work, which is very important. |
|
#3
|
|||
|
|||
|
Hello again...thanks a lot for replying! And yes, I am rather dumb when it comes to php...but i'm trying to learn it quickly through books (at least a basic knowledge), so that i won't have to ask for help and stuff as much....but attached i've the entire login.php (as well as i could interperet from the article)...if you need another file (in case i did something wrong
) then please feel free to ask...thanks againp.s., how would i call the function before i output the header?
__________________
-Alexander |
|
#4
|
|||
|
|||
|
Vasarab69,
to stop the header problem you should place ob_start(); at the top line of the script thats causing the error. for your second problem, the only thing i can see wrong with that line of code is $result[‘userId ‘] it should be $result['userId'] |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > a little help with the registration/members area script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|