tangledman — 2011-07-23T01:47:50-04:00 — #1
Can someone have a look and tell me why.
I have a php script that is pulling out a load of map icons from a database:
paul_wilkins — 2011-07-23T03:25:45-04:00 — #2
var 1 = '/images/map_icons/airport.png';
var 2 = '/images/map_icons/artgallery.png';
var 3 = '/images/map_icons/bank.png';
It is invalid to use a number as an identifier.
What you can do is to use an array to store the info, so that you can then use an array index to retrieve the values:
var icons = [
tangledman — 2011-07-23T05:24:00-04:00 — #3
Thanks Paul. "It is invalid to use a number as an identifier." - all I need