我想將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