Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Error message on CHANGE

phpMyEdit General     Error message on CHANGE
Post new topic   Reply to topic    
 
gwhite12     Joined: 27 May 2011   Posts: 5  
Post Posted: 2011-05-27 15:20
Back to top  Reply with quote     

I get this message when I change a field in database.

MySQL error 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 'primary=9)' at line 1

Warning: Invalid argument supplied for foreach() in /xxxx/xxxx/xxxx/xxxx/localhost/xxxx/admin/Edit/phpMyEdit.class.php on line 2731

xxxx = my system info

It does not matter which record I change.

Thank you

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2011-05-28 14:29
Back to top  Reply with quote     

One possibility is that odd field names are used. Post the schema for the table, as exported using phpMyAdmin.

 
gwhite12     Joined: 27 May 2011   Posts: 5  
Post Posted: 2011-05-28 16:06
Back to top  Reply with quote     

events
Field Type Null Default
eventID int(5) No
eventPURPOSE varchar(254) No
eventNAME varchar(254) No
eventLic_Num varchar(10) No
eventStart date No 0000-00-00
eventFinish date No 0000-00-00

tourney
Field Type Null Default
primary int(5) No
start_time text No
day_of_week text No
tourney text No
buy_in decimal(4,0) No
start_chips text No

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2011-05-29 15:17
Back to top  Reply with quote     

"primary" is a reserved word, thus try renaming the column.

http://www.hockinson.com/index.php?s=147

 
gwhite12     Joined: 27 May 2011   Posts: 5  
Post Posted: 2011-06-01 13:33
Back to top  Reply with quote     

Fixed, Thanks

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy