[ERROR] Warning: Use of undefined constant ca_name - assumed 'ca_name' (this will throw an Error in a future version of PHP) in

gyrud02·2022년 1월 24일
0

오류(ERROR)

목록 보기
13/27
Warning: Use of undefined constant ca_name - assumed 'ca_name' (this will throw an Error in a future version of PHP) in

메뉴바 하단에 메뉴이름이 뜨지 않는 에러 발생

echo "<li><a href='".G5_SHOP_URL."/list.php?ca_id=$row[ca_id]'>".$row[ca_name]."</a></li>";
  • 위 코드를 아래의 코드로 수정하였더니 해결되었다. (중괄호 사용)
echo "<li><a href='".G5_SHOP_URL."/list.php?ca_id=$row[ca_id]'>{$row['ca_name']}</a></li>";
profile
Back-End Engineer

0개의 댓글