Hi.
I'm trying to have my PHP code add a field to a table. I'm not sure what I'm doing wrong, so if you could take a look at this code and perhaps let me know, I'd appreciate it.
Here's what I've written:
$query_add_field=mysql_query("ALTER TABLE 'wickersty'.'team_roster' ADD '$field_name' TEXT NOT NULL"
;
When I run the code, I get this error ("w0303" is the value contained in $field_name, mentioned above):
You have an error in your SQL syntax near 'w0303' TEXT NOT NULL' at line 1
Many thanks, guys...
Jeff
I'm trying to have my PHP code add a field to a table. I'm not sure what I'm doing wrong, so if you could take a look at this code and perhaps let me know, I'd appreciate it.
Here's what I've written:
$query_add_field=mysql_query("ALTER TABLE 'wickersty'.'team_roster' ADD '$field_name' TEXT NOT NULL"
When I run the code, I get this error ("w0303" is the value contained in $field_name, mentioned above):
You have an error in your SQL syntax near 'w0303' TEXT NOT NULL' at line 1
Many thanks, guys...
Jeff