Hi folks,
I have some DB table names that are hyphenated, ie. federal-exemptions. I have gotten my code to work by putting single quotes around it. However, when I try to write my query like so:
$result_federal-exemptions = mysql_query("SELECT * FROM 'federal-exemptions'");
I get a parse error.
Can anyone tell me the best way to handle this? I know I could go:
$sql = 'SELECT * '
. ' FROM `federal-exemptions` ';
$result = mysql_query($sql);
...but I was trying to shorten things up a bit by using the first form.
Thanks,
Eve