我在这里做错了什么?
// INSERT: if we have a name to add...
if($_POST['email'] & $_POST['job_id'] ) {
// little bit of cleaning...
$email = mysql_real_escape_string($_POST['email']);
$job_id = mysql_real_escape_string($_POST['job_id']);
// insert new name into table
$sql = "INSERT INTO job_applications (id, email, job_id) VALUES ('','$email,'$job_id')";
$result = mysql_query($sql, $conn) or trigger_error("SQL", E_USER_ERROR);
} // end if
我正在使用 '&' 但没有运气,变量中是否包含某种语法?一次只想“if($_POST[])”超过一个值?