서버 이전을 하면서 adm/list_m.php를 옮기려고 하는데 리스트 출력이 안됩니다. DB는 잘 옮겨져서 아래 코드에 문제가 있는 것 같은데 답변 주시면 감사하겠습니다. 그누보드는 5.1.0 사용중입니다.
<?
$SQL = "select * from g5_listm order by m_no asc";
$rs = mysql_query($SQL);
while($row = mysql_fetch_array($rs))
{
?>
|
답변 4개 / 댓글 2개
<?
$SQL = "select * from g5_listm order by m_no asc";
$rs = sql_query($SQL);
while($row = sql_fetch_array($rs))
{
?>
서버 이전하면서 php 버전이 바뀐 듯하군요.
mysqli_* 함수를 이용하시거나
그누보드에 있는 sql_*함수를 이용하세요.
답변에 대한 댓글 1개
해결 방법 감사합니다. 하지만 다른 페이지에 사용해보니 아래와 같이 오류가 발행하는데 common.lib.php에 수정도 필요할까요?
Warning: Use of undefined constant G5_MYSQLI_USE - assumed 'G5_MYSQLI_USE' (this will throw an Error in a future version of PHP) in /kad1048/www/lib/common.lib.php on line 1478
Warning: Use of undefined constant G5_MYSQLI_USE - assumed 'G5_MYSQLI_USE' (this will throw an Error in a future version of PHP) in /kad1048/www/lib/common.lib.php on line 1478
답변을 작성하려면 로그인이 필요합니다.
Warning: Use of undefined constant G5_MYSQLI_USE - assumed 'G5_MYSQLI_USE' (this will throw an Error in a future version of PHP) in /kad1048/www/lib/common.lib.php on line 1478