Authorization with cookies

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
Hello all!

I am using the sams each yourself php book and I am looking at the chapter "Restricting access to your applications" - listing 15.8 user login script.

I have typed out the code but I get this error

Code:
Notice: Use of undefined constant username - assumed 'username' in c:\easyphp1-7\www\gym-tv\access levels\listing15.8.php on line 3

Notice: Use of undefined constant password - assumed 'password' in c:\easyphp1-7\www\gym-tv\access levels\listing15.8.php on line 3

Warning: mysql_connect(): Access denied for user: 'gymtvdb@localhost' (Using password: YES) in c:\easyphp1-7\www\gym-tv\access levels\listing15.8.php on line 9
Access denied for user: 'gymtvdb@localhost' (Using password: YES)

If you need the code give me a shout!

Thanks!
 
well a little more elaboration would be helpful... is this a form processing script? is it a normal page? Post the code if you wish... it'll give us a better understanding.

Andrew
 
someone elses meaning 3rd party code YOU did not write. That's what their support team is for. Since you are using a book. The book is probably way out dated and 95% of the code won't work on a properly configured server. So what I really mean to say is. Don't use books use the internet to learn. http://www.php.net is the best resource.
 
Back
Top