Re: [PHP-WIN] Re: Password Protection

2001-07-20 Thread Erin's Fan Club
--- Original Message - From: "Robert J Sherman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 11:16 PM Subject: Re: [PHP-WIN] Re: Password Protection > It would also be considered more correct to use curly "{ }" to open and > clo

Re: [PHP-WIN] Re: Password Protection

2001-07-19 Thread Robert J Sherman
It would also be considered more correct to use curly "{ }" to open and close conditionals.. rather than ":" and end if/end else, etc.. "Erin'S Fan Club" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It is more correct to use 'else' as a default error catch

RE: [PHP-WIN] Re: Password Protection

2001-07-19 Thread Erin's Fan Club (C)
It is more correct to use 'else' as a default error catch. It is far better to turn it aroud like; = Original Message From "elias" <[EMAIL PROTECTED]> = >try like that: >$result = mysql_query("SELECT password FROM newsauthors WHERE author='$name' >AND password='$code'"); >if (mysql_num_ro

[PHP-WIN] Re: Password Protection

2001-07-19 Thread elias
try like that: wrote in message 002701c10ff5$bb273e80$[EMAIL PROTECTED]">news:002701c10ff5$bb273e80$[EMAIL PROTECTED]... 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 an