vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Mysql error (https://vborg.vbsupport.ru/showthread.php?t=157093)

msvi007 09-05-2007 05:27 PM

Mysql error
 
Here is an error I get when clicking on the A B C, etc to find games starting with those letters or when searching for games from the search box

mySQL query error: select g.*, c.password from games_list as g
left join games_cats as c on (g.gcat = c.c_id)
where g.active = 1 and trim(password)='' and gtitle like 'A%' and gcat IN (1,0,2,5,3,)
order by gtitle ASC

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
order by gtitle ASC' at line 3
mySQL error code:
Date: Wednesday 05th of September 2007 02:25:28 PM

Any ideas on how to fix it?

MrZeropage 09-05-2007 07:16 PM

check your categories, seems there is something wrong there... ?

msvi007 09-05-2007 09:00 PM

We only have 5 categories and there is nothing wrong there, I can click on the categories and play the games in there, just can;t search.

MrZeropage 09-06-2007 03:48 AM

I guess there is a problem with your categories, try running this query:

SELECT * FROM games_cats

tell me what the output is...

msvi007 09-06-2007 04:23 AM

When I execute that query it shows me all the categories, passwords and number of games in each.
example:
c_id cat_name active show_all pos password num_of_games description skin
1 Default 1 0 1 106 0

MrZeropage 09-06-2007 11:53 AM

how many rows do you get ? All c_id values are valid and filled ?

msvi007 09-06-2007 01:06 PM

This is what i get when i run the query

Results: 5 (0.0002s), Page 1 of 1
c_id cat_name active show_all pos password num_of_games description skin
1 Default 1 0 1 106 0
2 Ivy League 1 0 2 52 0
3 Toga Tales 1 0 3 3 0
5 The Keg Zone 1 0 4 34 0
7 Bleskop 1 0 5 1 0

MrZeropage 09-06-2007 01:20 PM

I need access to your site to find the reason for this, please provide FTP+adminCP access via PM

msvi007 09-06-2007 02:53 PM

sent

msvi007 09-26-2007 03:07 AM

any news on this? I am still having this issue. I sent you the login back on the 6th and have not heard back from you. Please let me know.


All times are GMT. The time now is 02:57 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.02334 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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