일부 쿼리를 에코하려고하는데 계속 나에게
구문 분석 오류 : 구문 오류, 예기치 않은 '}', ','또는 ';'예상 C : \ xampp \ htdocs \ test \ users.inc.php on line 19
<?php
require 'connect.inc.php';
function user_list(){
$user_list = array();
$users_query = mysql_query("SELECT `user` FROM `20s` WHERE `online`=1 ");
while ($users_row = mysql_fetch_assoc($users_query)) {
$user_list[] = $users_row['user'];
echo $user_list
}
}
user_list();
?>
여기에 세미콜론을 추가하는 것을 잊었습니다.
echo $user_list;
^//<---- Add one here
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다