이 문구 어디가 틀렸는가요?
본문
$muz_sql_data = sql_query("select * from g5_write_$bo_table where wr_id = '$_GET[id]'");
$muz_row2=sql_fetch_array($muz_sql_data);
$data_sql= sql_query("select * from g5_board_file where wr_id = '$_GET[id]' and bo_table = '$bo_table' and bf_no = '0'");
$data=sql_fetch_array($data_sql);
$list_data = sql_query("select * from g5_write_$bo_table where mb_id = '$muz_row2[mb_id]'");
이 문구 어디가 틀렸는가요?
답변 2
$muz_sql_data = sql_query("select * from g5_write_{$bo_table} where wr_id = '{$_GET['id']}'");
$muz_row2[mb_id]를 echo로 찍어보세요.
아마 안나올거같은데요... $muz_row2얘가 배열이지 않나요?
답변을 작성하시기 전에 로그인 해주세요.