I’ve got a full version of EE 1.6.8 (build 20090723) installed, the Query module activated, yet the basic functionality is not working for me. My template is simply:
{exp:query sql="SELECT cat_id FROM exp_categories"}
{cat_id}
{if no_results}no results!{/if}
{exp:query}Yet the page outputs:
{cat_id}rather than the actual cat_id’s from the database.
I know that the Query module is at least somewhat working because I edited mod.query.php (for testing) after line 182 and added:
print_r($query);And on the outputted template I do indeed get the full result set.
DB_Cache Object
(
[result] => Array
(
[0] => Array
(
[cat_id] => 4
)
[1] => Array
(
[cat_id] => 5
)
[2] => Array
(
[cat_id] => 6
)
[3] => Array
(
[cat_id] => 7
)
[4] => Array
(
[cat_id] => 8
)
[5] => Array
(
[cat_id] => 9
)
[6] => Array
(
[cat_id] => 10
)
)
[row] => Array
(
[cat_id] => 4
)
[num_rows] => 7
[q_count] => 18
[fields] => Array
(
)
)What could be stopping the template tags from being parsed correctly? I’ve got no other problems with tags on the rest of my site.