Re: counting records in db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Your idea to use 'COUNT(Username)' is just about the ONLY part of that
> script that you are doing correctly...
>
> :-)

:D


> And the header("Location: ...") requires a full URL.
Why?


> And you should have better error-checking, probably.
> [Though maybe you have a custom error handler not apparent]
Right. I skipped that part to not "waste" space in post. $_POST values are
checked first and then used.

> And your DB password should probably be a hash/crypted value.
Correct. I use this, of course.

> And it looks like maybe you are using register_globals "on" which is bad.
Nope! globals are off.
:D

> Once again, start reading:
> http://phpsec.org/
I'm Shiflett's fan!
:)

-afan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux