Results 1 to 4 of 4

Thread: sql error ?

  1. #1
    katie hunter is offline vBTubePRO-User BR
    Join Date
    May 2008
    Posts
    279

    Question sql error ?

    Hii,

    Why am I receiving these sql errors ? I think something wrong with the search function

    PHP Code:
    Database error in vBulletin 3.6.10:

    Invalid SQL:

                   
    SELECT COUNT(`tubeid`) AS `totalrecords`
                   
    FROM `vbtube_tubes` AS tubes
                   WHERE keywords LIKE 
    '%harumi's bad play%' AND active = 1;

    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 '
    s bad play%' AND active = 1' at line 3
    Error Number 
    1064
    Date         
    FridayJuly 25th 2008 08:46:20 AM
    Script       
    http://forum.nihonomaru.com/vbtube_search.php?do=all
    Referrer     http://forum.nihonomaru.com/vbtube_search.php?do=all
    IP Address   
    Username     evilguy99
    Classname    
    vB_Database 
    PHP Code:
    Database error in vBulletin 3.6.10:

    Invalid SQL:

                   
    SELECT COUNT(`tubeid`) AS `totalrecords`
                   
    FROM `vbtube_tubes` AS tubes
                   WHERE keywords LIKE 
    '%it's a family affair%' AND active = 1;

    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 '
    s a family affair%' AND active = 1' at line 3
    Error Number 
    1064
    Date         
    FridayJuly 25th 2008 10:05:56 AM
    Script       
    http://forum.nihonomaru.com/vbtube_search.php?do=all
    Referrer     http://forum.nihonomaru.com/TubeShow-388-34584.html
    IP Address   
    Username     unknown123456
    Classname    
    vB_Database 

  2. #2
    s7v7n's Avatar
    s7v7n is offline Administrator
    Join Date
    Jan 2008
    Posts
    8,108

    Default

    This is a bug yesterday reported. I fix that. now you can't do anything.

  3. #3
    ckusmez is offline vBTubePRO-User BR
    Join Date
    Mar 2008
    Posts
    53

    Default

    i think i fixed the problem. At least, it is working in my site.

    Firstly find the vbtube_search.php page on forum root.

    Then find

    PHP Code:
    // Count for Pages 
    line

    And immeadiately add below line of code;

    PHP Code:
    $searchtext eregi_replace("'","",$searchtext); 
    I wish this was the solution of the problem.

  4. #4
    katie hunter is offline vBTubePRO-User BR
    Join Date
    May 2008
    Posts
    279

    Default

    Quote Originally Posted by s7v7n View Post
    This is a bug yesterday reported. I fix that. now you can't do anything.
    Hi Murat what do you mean by "now you can't do anything."

    ~ Thanks ckusmez i will try that =]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •