我想将MySQL以下的查询改为MySQLi(准备好的语句),但我不知道该怎么做,因为它有多行可供选择。任何人都可以以正确的方式指向我。选择多行mysqli
$check_added_files = mysql_query("select * from `vpb_uploads` where `username` = '".mysql_real_escape_string($username)."' and `firstname` = '' and `image_one` != '' and `image_two` != '' and `image_three` != '' and `image_four` != '' and `image_five` != ''");
if(mysql_num_rows($check_added_files) == 1)
{
echo 'up_to_five_already';
}
我不确定确切的问题是什么,主要区别在于您使用占位符(s)作为变量并且事后绑定值。你检查过手册吗? – jeroen 2013-03-27 16:01:42
其他人吗?我真的需要帮助 – Magna 2013-03-27 17:10:41