Thread: SQL error

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    47
    Plugin Contributions
    0

    Default SQL error

    Hi All
    I was trying to change the date round , and rename State/province to County (im in the uk) but now im getting the following

    1064 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 'session_id = '54fcc29fa92376e01c79599db6652c4f' WHERE session_id = 'a' at line 2
    in:
    [UPDATE whos_online ET session_id = '54fcc29fa92376e01c79599db6652c4f' WHERE session_id = 'ae689b3906f3cccdb2ac1f9736a74666']

    Anyone got any ideas? bit messed up..

    Also, any ideas how to get the Staterovince to contain Counties from the UK instead of the united states? or just turn it off like i have

    Many thanks, wish i hadnt fiddled now

    Rob

  2. #2
    Join Date
    Aug 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: SQL error

    A section i changed from another post is to this...

    I didnt change anything on the 3rd line (%a, %d , %b, %y) etc. Does this needto ne moved around to allow d/m/y

    @setlocale(LC_TIME, 'en_US.ISO_8859-1');
    define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

    cheers

    rob

 

 

Similar Threads

  1. v139h DB/SQL Error when using SQL Patch for Add Pages More Info Sidebox addon
    By maperr55 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 5 Mar 2012, 09:32 PM
  2. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  3. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  4. MySQL Error 1064 You have an error in your SQL syntax;
    By dmm2020 in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 05:02 AM
  5. error message 1064 you have an error in your sql syntax
    By ngsl in forum General Questions
    Replies: 0
    Last Post: 22 Aug 2008, 06:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR