[SOLVED] error in SQL syntax but where it all looks fine to me

This is a discussion on "[SOLVED] error in SQL syntax but where it all looks fine to me" within the Databases section. This forum, and the thread "[SOLVED] error in SQL syntax but where it all looks fine to me are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Nov 24th, 2007, 10:04
Up'n'Coming Member
Join Date: Jul 2007
Location: Barry
Age: 22
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] error in SQL syntax but where it all looks fine to me

insert into skills (Account, Name, Alchemy, Blacksmithing, Bowcraft, Carpentry, Cooking, Fishing, Healing, Herding, Lockpicking, Lumberjacking, Magery, Meditation, Mining, Musicianship, Removetrap, MagicResistance, Snooping, Stealing, Stealth, Tailoring, Tinkering, Veterinary, Str, Dex, Int, Level, Exp) VALUES ('<account>', '<NAME>', '<Alchemy>', '<Blacksmithing>', '<Bowcraft>', '<Carpentry>', '<Cooking>', '<Fishing>', '<Healing>', '<Herding>', '<Lockpicking>', '<Lumberjacking>', '<Magery>', '<Meditation>', '<Mining>', '<Musicianship>', '<Removetrap>', '<MagicResistance>', '<Snooping>', '<Stealing>', '<Stealth>', '<Tailoring>', '<Tinkering>', '<Veterinary>', '<str>', '<dex>', '<int>', '<eval <tag0.Level>>', '<eval <tag0.tix>>');"


ERROR:MySQL query "insert into skills (Account, Name, Alchemy, Blacksmithing, Bowcraft, Carpentry, Cooking, Fishing, Healing, Herding, Lockpicking, Lumberjacking, Magery, Meditation, Mining, Musicianship, Removetrap, MagicResistance, Snooping, Stealing, Stealth, Tailoring, Tinkering, Veterinary, Str, Dex, Int, Level, Exp) VALUES ('drewwales', 'Anderson', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.7', '30.0', '30.0', '0.0', '400.0', '400.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '400', '200', '100', '89', '9');" failed due to "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 'Int, Level, Exp) VALUES ('drewwales', 'Anderson', '30.0', '30.0', '30.0', '30.0'' at line 1"

where is the error it all looks fine to me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 24th, 2007, 11:45
Up'n'Coming Member
Join Date: Jul 2007
Location: Barry
Age: 22
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: error in SQL syntax but where it all looks fine to me

Solved
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 24th, 2007, 11:55
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,765
Thanks: 0
Thanked 14 Times in 14 Posts
Re: error in SQL syntax but where it all looks fine to me

Nice one! May i ask what <Removetrap> things like that are??
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 28th, 2007, 01:21
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,611
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: [SOLVED] error in SQL syntax but where it all looks fine to me

I think it is the value that will be replacing the particular field in the database. In asp it will be like this:

Code: Select all
'" & Removetrap & "'
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax error... ktsirig Databases 2 Feb 4th, 2007 14:48
Annoying little syntax error adeking Web Page Design 4 Aug 9th, 2006 13:50
Working fine but giving error clickme_not JavaScript Forum 3 Apr 28th, 2006 18:36
error in SQL syntax Drgreenfingers Databases 10 Jan 30th, 2006 02:00
syntax error: unexpected T_BOOLEAN_AND... jswebdev PHP Forum 4 Jan 28th, 2006 07:29


All times are GMT. The time now is 05:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42