게시판 리스트에서 내가 작성한 최근글번호를 알수 있을까요?
PHP | PHP 7.1 |
---|---|
CMS | XpressEngine |
-
감사합니다. 궁금한게 어떤식으로 사고를 해야(?) 저런게 떠오르죠?;;
<query id="getDocumentSrlByMemberSrl" action="select">
<tables>
<table name="documents" />
</tables>
<columns>
<column name="document_srl" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
</conditions>
<navigation>
<index var="sort_index" default="documents.regdate" order="regdate" />
<list_count var="list_count" default="1" />
</navigation>
</query>
SELECT document_srl FROM xe_documents
WHERE module_srl = 현재게시판모듈번호 AND member_srl = 현재사용자번호
ORDER BY regdate DESC LIMIT 1;
XML 쿼리로 만드는 것은 숙제요... ㅎㅎ