Is it preferred to assign POST variable to an actual variable?

后端 未结 5 2257
半阙折子戏
半阙折子戏 2021-02-20 18:29

I\'ve just completed my registration form for my website and for the action page where all the SQL takes place I\'ve just skipped assigning the POST variable to actual ones, lik

5条回答
  •  日久生厌
    2021-02-20 18:58

    I personally dislike dupe variables. Stick to what you got until u need to drasticly transform it. Dupe variables makes it harder to track and just wastes memory and time. Why bring sand to the beach.

    select * from tbl where this = '". mysql_real_escape_string(trim($_POST['that'])) ."'

提交回复
热议问题