Using php filter_var with mysql_real_escape_string

后端 未结 4 876
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-13 16:28

I would like to start my question by saying, I realize PDO/mysqli is the new standard and has been widely covered on SO. However in this particular case I dont have time to conv

4条回答
  •  春和景丽
    2021-02-13 17:02

    In this case, if the filter fails the query will be:

    SELECT email FROM members WHERE email = '0'
    

    So, not much to worry about the query; it just won't return any results.

    Unless of course, you have a similar insert / update query.

    In which case, you could have plenty of rows in the database where the email is '0'

提交回复
热议问题