$feedback_list = array(
array('date1', '87586cb8b79861edcc4e6a12104b87529c53050375904ff180'),
array('date2', 'abc1d08c3e42cffa7eaaa84eb4fe04b44c34be497ce7e8ea26')
);
foreach($feedback_list as $feedback) {
$result = mysql_query("INSERT INTO 'inactive_users' (token, username)
SELECT (token, username) FROM active_users WHERE token = '$feedback[1]'");
if (!mysql_query($result,$con)) { die('Error: ' . mysql_error()); }
}
.. 回显正确的值,该值也存在于active_users
表中,但该值不会复制到第二个表中。错误是:
错误:查询为空