[PHP-WIN] password protection

2002-01-29 Thread Martin.Andrew
Part of my site is PHP based the other part is HTML. I want to certain parts of the site to only be available to users with valid passwords. The current solution uses a .htaccess file, where the user has to enter valid username and password to gain access. This is fine but pretty basic, the user

Re: [PHP-WIN] Password Protection

2001-07-18 Thread Julie Meloni
N> $code = mysql_query("SELECT password FROM newsauthors WHERE $name = author"); ?>> You're not extracting a result here, just executing the query (assuming you have succesfully created the connection to the db at some other point in your code). Look up mysql_result() (and others in the family

[PHP-WIN] Password Protection

2001-07-18 Thread Nintendoodle
I am trying to get a content management system up and running on my site. I want to have the thing password protected, and this was how I was going about it, passing on name and password variables in the urls of the management system. However, this doesnt work, it just says your password in cor