vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   vBQuiz (https://vborg.vbsupport.ru/showthread.php?t=42883)

ULTIMATESSJ 08-29-2002 01:13 AM

vBQuiz
 
I just recently installed vBQuiz, but once i did and tried to access it, this came up

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz
WHERE approve = 1
ORDER BY timestamp DESC
LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Wednesday 28th of August 2002 10:10:50 PM
Script: http://www.oswparadox.com/gcaforums/gcaforums/quiz.php
Referer: http://www.oswparadox.com/gcaforums/


How would i get rid of this

g-force2k2 08-29-2002 02:48 AM

ULTIMATESSJ its seems from the query that you have posted that its not collecting a LIMIT value... maybe be something wrong with the coding... can you post the code from that section? regards...

g-force2k2

ULTIMATESSJ 08-29-2002 12:07 PM

well there hasen't been any real file modifications in the hack, all the stuff is done thru the install file which comes with the zip file, and the other files which come with it

ExAvIoUr 08-29-2002 12:28 PM

well most of the time ppl forget to put a comma. try to put a comme after imagename. just a thought.

ULTIMATESSJ 08-29-2002 05:41 PM

Quote:

Originally posted by ExAvIoUr
well most of the time ppl forget to put a comma. try to put a comme after imagename. just a thought.
i don't really get it, i haven't added any queries manually, they were all done thru the install script, so i don't know what i gotta do

kevP 09-26-2003 08:24 PM

came across this problem myself, i found the fix by searching the forums.

try this.

add the below line to the top of quiz.php
$mainquizlimit="10";

fixed it for me.


All times are GMT. The time now is 02:39 PM.

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.01004 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete