Hi all,
I have been trying to build a signup/login script and have become stuck on a couple of points.
Firstly, i have been using addslashes on POST variables and (ereg("'", )) to prevent sql injection, but recently i have read(including on this great site) that you should always use mysql_real_escape_string() before storing in database.
Dont these 2 methods do basically the thing. (escape the string)?
Secondly, i have seen many example login scipts using a variety of methods, cookies, sessions or a session table in the database, which of these would result in the most secure method.
thanks
beanieMan