Can anyone tell me why the following code works just fine......
$sql = "ALTER TABLE drivers ADD COLUMN a1 VARCHAR (20)";
$result = mysql_query($sql);
but this code doesnt.....
$sql = "ALTER TABLE drivers ADD COLUMN 1 VARCHAR (20)";
$result = mysql_query($sql);
As you can see I am trying to add a column which has a name of a number (1 in the above code).
I dont recieve any error messages. The top example adds the column just fine, and the 2nd example just does nothing.
I know it is ok to use numbers to name a column, as I have done it using the MySQL Control Center utility.
Any ideas?
Thanks