Simple secure login script. - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21) +---- Thread: Simple secure login script. (/showthread.php?tid=16647) |
Simple secure login script. - Frank Yates - 03-07-2011 A member nicknamed Janvier123 in a forum released this script in public, he said that it has "anti SQL inject". Take a look at the code bellow and mind telling me if that is true ? I have no idea about security in PHP. PHP Code: <?php RE: Simple secure login script. - Gaijin - 03-07-2011 Yes it is true, or atleast appears so.... Anyway in the function anti_injection, replace the following: PHP Code: $sql = addslashes($sql); This now takes LIKE injections into consideration. RE: Simple secure login script. - lil-wayneee - 03-08-2011 Nice But How should I do If I want to alow more User then One? wayneee- |