| Index
» Projekty
» phpMyEdit
» Fórum
» Can't Get Values Working from Table/Column |
 |
jaystarkey
Založený: 10.06.2005
Príspevky: 4
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
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
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
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
|
|
|
|