Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  1064 error when adding or changing

phpMyEdit General     1064 error when adding or changing
Odoslať novú tému   Odpovedať na tému    
 
markcrobinson     Založený: 05.10.2004   Príspevky: 6  
Príspevok Zaslal: 2004-10-05 19:57
Návrat hore  Odpovedať s citátom     

I have just installed phpMyEdit at

http://www.handicappedpets.com/cgi-bin/phpedit/accontacts.php

When I try to add or change, I get an error when I save. Can anyone tell me where I might look for a solution?

Thanks!

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 'Desc,website,phone,fax,type,other1,other2,other3) VALUES ('0','

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-10-05 22:18
Návrat hore  Odpovedať s citátom     

my first guess is that your first field (id) is an autoincrement and you try to assign a value to it. do not allow to add or change it (options => LFV)

another common problem is with bad column names ( with - or .) or reserved names (sql reserved)

and please make use of the inc option, it took me awfully long to load...

 
markcrobinson     Založený: 05.10.2004   Príspevky: 6  
Príspevok Zaslal: 2004-10-06 00:25
Návrat hore  Odpovedať s citátom     

Thank you. inc option done.
I don't understand (options => LFV). Is that "List, Filter, View?"

at the field level I have that field's options set at:
$opts['fdd']['id'] = array(
'name' => 'ID',
'select' => 'T',
'options' => 'AVCPDR', // auto increment
How do I make the id field not write? It's already Read only, isn't it?

michal Napísal:
my first guess is that your first field (id) is an autoincrement and you try to assign a value to it. do not allow to add or change it (options => LFV)

another common problem is with bad column names ( with - or .) or reserved names (sql reserved)

and please make use of the inc option, it took me awfully long to load...


 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-10-07 17:07
Návrat hore  Odpovedať s citátom     

remove AC from your options on ID. maybe it won't solve the problem, but it's a good try

 
markcrobinson     Založený: 05.10.2004   Príspevky: 6  
Príspevok Zaslal: 2004-10-08 15:36
Návrat hore  Odpovedať s citátom     

The default field length of the mome field "perhaps I labeled it as Long Text, was 16777215, Change it to 4000 and worked great

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov