아래의 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';
}
가장 큰 차이점은 변수에 자리 표시자를 사용하고 나중에 값을 바인딩한다는 것입니다. 설명서를 확인 했습니까? – jeroen
다른 사람? 정말 도움이 필요합니다. – Magna