September 07, 2010, 09:57:37 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Always search the forum before posting !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: DB function failed with error number 1064  (Read 1684 times)
areavirtual
Newbie

Offline Offline

Posts: 3


« on: May 16, 2006, 03:28:30 pm »

Hi,

  before posting this Thread i've looked in the old forum, but i couldn't find what i was looking for.

my sql sintax is giving me this error:

DB function failed with error number 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 ' 10, none, , wqeqwe, wqeqewq, weqeqwe, , )' at line 1 SQL=INSERT INTO jos_encomendas (`id`, `campo_pagamento`, `pub`, `tag`, `contrato`, `jogos`, `tr`, `slots`, `slotsts`, `pagar`, `pass_admin`, `nome_clan`, `nome_servidor`, `nome`, `emai`) VALUES (null, 1, 0.00, 0, 1, 3.00, , 10, none, , wqeqwe, wqeqewq, weqeqwe, , )

i'm new with mysql and i don't know why this is happening, i'm using the piece of the rock an roll sample, with the necessary changes formy table jos_encomendas.

if any one could help.

Thanks

Bruno
Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1359



« Reply #1 on: May 16, 2006, 05:23:27 pm »

Hi Bruno
By the looks of it its you syntax exactly as the error says if you look closley you will see you have 2 commas togeather in a few places im pretty sure thats why you get this error.
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
galaxyboss
Newbie

Offline Offline

Posts: 23


« Reply #2 on: May 16, 2006, 05:42:16 pm »

Hi

i had the same problem, yopu have to check ur Mysql table stracture:
if u have INT,TININT : you have to use the insert like : insert...value($value1,$value2,...)
and if you have text or varchar and I think datetime you have to use '$value1':
inser ...value('$value1',$valueINT,'$valuetext',.......)
Logged
areavirtual
Newbie

Offline Offline

Posts: 3


« Reply #3 on: May 17, 2006, 01:42:31 am »

Hi,

thanks for both, the problem was in the query.

Best regards

Bruno
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |