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  »  Can't Get Values Working from Table/Column

phpMyEdit General     Can't Get Values Working from Table/Column
Odoslať novú tému   Odpovedať na tému    
 
jaystarkey     Založený: 10.06.2005   Príspevky: 4  
Príspevok Zaslal: 2005-06-11 07:50
Návrat hore  Odpovedať s citátom     

I included this in my script for one field:

//$opts['fdd']['ApptDate']['values']['table'] = 'Dates';
//$opts['fdd']['ApptDate']['values']['column'] = 'ClinicDates';

And get this error: 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 '-sta_sfhbc.Dates ORDER BY ClinicDates' at line 1

How can I get this working?

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-06-11 19:10
Návrat hore  Odpovedať s citátom     

Is Dates a reserved word in MySQL?

 
jaystarkey     Založený: 10.06.2005   Príspevky: 4  
Príspevok Zaslal: 2005-06-13 07:10
Návrat hore  Odpovedať s citátom     

ajh Napísal:
Is Dates a reserved word in MySQL?


I don't think so - I tried renaming the table to "ClinicDates" and got:

"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 '-sta_sfhbc.ClinicDates ORDER BY ClinicDates' at line 1"

Could it be because there is a hyphen in the database name? The error message doesn't include the full table name, the-sta_sfhbc.ClinicDates?

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2005-06-13 08:53
Návrat hore  Odpovedať s citátom     

hyphens {-} are bad... try to put them in `, but that can have some sideeffects, or rename the database...

 
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