mysql_fetch_array() 함수가 빈 배열을 반환하는지 확인하려고합니다. 하지만 내 코드가 작동하지 않는 것 같습니다. 여기서 배열이 비어 있다면 구성 메시지 아래에 표시하고 싶습니다.가져온 어레이가 비어 있거나 PHP가 아닌지 확인하십시오.
코드 :
$queryContents= queryMembers();
$exeQuery = mysql_query($queryContents);
while($fetchSet = mysql_fetch_array($exeQuery)) {
if(count($fetchSet) == 0) {
echo "This Page is Under Construction";
}else{
// something else to display the content
}
}
어떻게 같은 기능을 acheive 확인합니까?
$ fetchSet에있는 값은 무엇입니까? (시도 var_dump() 및 검사) –