I have a problem accessing a variable in cold fusion because the variable name contains spaces. I want to output the list of tables in a MySQL database in the following way:
<CFQUERY name="getTableNames" datasource="dbname">
show tables
</CFquery>
<CFoutput query="getTableNames">
<!--- Output the tablename ---><br>
</CFoutput>
However the column name returned by the MySQL query contains spaces. The column name returned by the database is "Tables in dbname".
ColdFusion won't let me access #Tables in dbname# due to the spaces. Is there anyway around this or can cold fusion access the column by some index (eg. column[0])?
<CFQUERY name="getTableNames" datasource="dbname">
show tables
</CFquery>
<CFoutput query="getTableNames">
<!--- Output the tablename ---><br>
</CFoutput>
However the column name returned by the MySQL query contains spaces. The column name returned by the database is "Tables in dbname".
ColdFusion won't let me access #Tables in dbname# due to the spaces. Is there anyway around this or can cold fusion access the column by some index (eg. column[0])?