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
THX隊友,它的工作! :) – pantelis 2011-03-23 01:50:15