0
$reviewsthread = $vbulletin->db->query_first("
SELECT
thread.threadid, thread.title,
post.pagetext AS preview
FROM
".TABLE_PREFIX."thread AS thread INNER JOIN
".TABLE_PREFIX."post AS post ON thread.firstpostid = post.postid
WHERE
thread.forumid = 12
AND
thread.title LIKE '%".$vbulletin->db->escape_string($moviedata['title'])."%'
LIMIT
1
");
위는 외부 영화 페이지의 포럼 스레드의 게시물 콘텐츠를 표시하는 PHP 코드의 일부입니다.어떻게 MySQL에서 vBulletin 스레드 ID를 얻을 수 있습니까?
AVATAR 동영상 페이지를보고 있다고 가정 해 보겠습니다. 스레드 제목에 "아바타"단어가 포함되어 있으면 자동으로 포럼 (id (12) 인 영화 리뷰 포럼)을 확인합니다. 그렇다면 무비 페이지에 스레드 게시물 내용을 표시합니다.
나는 그 스레드에 대한 링크를 제공하고 싶기 때문에 스레드 제목도 알아야합니다.
이 시점에서 도움이 필요합니다. 사전에
<a href="showthread.php?t=$moviereviewthreadid">Click here to read the entire review...</a>
감사합니다 ...