한 회원이 쓴 글 중 가장 최신글의 작성시간을 뽑아내는 mysql 구문 정보
한 회원이 쓴 글 중 가장 최신글의 작성시간을 뽑아내는 mysql 구문본문
한 회원이 쓴 글 중 가장 최신글을 뽑아내는 mysql 구문을 만들려고 하는데요,
잘안되서요
$maxwrid = mysql_query("select max(wr_id) from $bo_table where mb_id = '$member[mb_id]'");
$max = sql_fetch("select * from $bo_table where wr_id = '$maxwrid'");
echo $max[wr_datetime];
이렇게 하려고 하는데...무엇이 잘못된 것일까요?
안나오네요...ㅜㅡ
잘안되서요
$maxwrid = mysql_query("select max(wr_id) from $bo_table where mb_id = '$member[mb_id]'");
$max = sql_fetch("select * from $bo_table where wr_id = '$maxwrid'");
echo $max[wr_datetime];
이렇게 하려고 하는데...무엇이 잘못된 것일까요?
안나오네요...ㅜㅡ
댓글 전체
$max = sql_fetch("select * from $bo_table where wr_id = '".$maxwrid."'"); 이렇게함 해보세요