2011-03-23 54 views
0

IM試圖防止SQL注入與

mysql_real_escape_string($value) 

這裏是我的代碼,但它似乎是我得到一個空值,

$this->name_safe = mysqli_real_escape_string($this->name,$this->link); 

      $this->query = "INSERT INTO student (complete_name, date_birth, gender, email, student_status) 
      VALUES ('$this->name_safe', '$this->date', '$this->gender', '$this->email_1', 'current')"; 

? thx

回答

相關問題