1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Vbulletin Forum Software Error

Discussion in 'Web Design & Development' started by silentdub, Feb 10, 2015.

Thread Status:
Not open for further replies.
  1. silentdub

    silentdub Thread Starter

    Joined:
    Feb 10, 2015
    Messages:
    2
    Invalid SQL:
    select * from vb_style where styleid = or styleid = 4 ORDER BY styleidASC;

    MySQL Error : You have an error in your SQL syntax; check themanual that corresponds to your MySQL server version for the right syntax touse near 'or styleid = 4 ORDER BY styleid ASC' at line 1
    Error Number : 1064

    Getting the error above when accessing the forum pages (any). I checked the table, vb_style exists and there is a record with an ID of 4.

    Any help is appreciated.
    Vbulletin 4.2.2
    Apache Version2.2.29PHP Version5.3.29MySQL Version
    5.5.41-cll-lve
     
  2. silentdub

    silentdub Thread Starter

    Joined:
    Feb 10, 2015
    Messages:
    2
    The problem was caused by incomplete style information.

    disable all hooks and then you have access to fix.
     
  3. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,393
    First Name:
    Jim
    Hi there silentdub and welcome to TSG:)
    Code:
    select * from vb_style where styleid = or styleid = 4 ORDER BY styleidASC;
    Was the problem due to the first comparison of styleid missing the "" ?
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Vbulletin Forum Software
  1. Techtech100
    Replies:
    4
    Views:
    886
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1142823

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice