以下のMySQLクエリを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';
}