vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how do I retrieve that info? (https://vborg.vbsupport.ru/showthread.php?t=70146)

Lionel 10-03-2004 10:26 PM

oh boy, I figured it out. Had to go to the functions_showthread, define a global and put it in that postbit section. Can't believe I did it. Don't even kow php and mysql. The whole thing has been trial and error and help from people like you.

Logikos 10-03-2004 10:39 PM

Quote:

Originally Posted by Lionel
oh boy, I figured it out. Had to go to the functions_showthread, define a global and put it in that postbit section. Can't believe I did it. Don't even kow php and mysql. The whole thing has been trial and error and help from people like you.

Hey i learned the little i know the same way, "does this work if i do that?" [refreshes page] "error" DAMMIT! lol

thats me till i get it right.

Lionel 10-04-2004 03:19 AM

oops. This is returning only one item

$pollist = $DB_site->query("SELECT
thread.threadid AS thread_id,thread.title AS thread_title,thread.pollid AS thread_pollid,poll.pollid AS poll_pollid,
poll.active AS poll_active,poll.dateline AS poll_dateline,poll.public AS poll_public,user.userid,user.username
FROM
" . TABLE_PREFIX . "thread AS thread,
" . TABLE_PREFIX . "poll AS poll,
" . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS dlog_t ON (dlog_t.primaryid = thread.threadid AND dlog_t.type = 'thread')
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS dlog_p ON (dlog_p.primaryid = poll.pollid AND dlog_p.type = 'poll')
WHERE thread.pollid = poll.pollid AND poll.active = '1' AND dlog_t.primaryid IS NULL AND dlog_p.primaryid IS NULL
ORDER BY poll.dateline ASC LIMIT 10");

Fargo 11-08-2004 06:28 PM

any chance you got your problem figured out, Lionel? Im doing something similar (actually, just a test by returning all forum titles), but its only returning the first row.

Lionel 11-08-2004 07:39 PM

Quote:

Originally Posted by Fargo
any chance you got your problem figured out, Lionel? Im doing something similar (actually, just a test by returning all forum titles), but its only returning the first row.

are you trying to get a list of all polls?


All times are GMT. The time now is 09:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01121 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete