Page 1 of 1

MySql - numbers in field names?

Posted: Sun Feb 15, 2004 3:58 am
by Toneboy
Was doing a bit of work on something this morning, and was looking to pull data from a table with the fields - "2003rank" and "2004rank", but kept getting parse errors on the line where I was trying to echo the data.

Works fine when I changed them to "lastyear" and "thisyear" - am I right in thinking that you cannot put numbers into a field name?

Posted: Sun Feb 15, 2004 6:06 am
by vigge89
i'm not sure, but mysql maybe doesn't allow numbers in the first character for fieldnames?