한 회원이 쓴 글 중 가장 최신글을 뽑아내는 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];
이렇게 하려고 하는데...무엇이 잘못된 것일까요?
안나오네요...ㅜㅡ
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기