Hi all,
if I write the following code in one of my template files:
$result = $db->query("SELECT id, name FROM pages");
while($row = $result->fetch_array()) print_r($row);
It works and prints a list of all my pages.
If I write the same code in a "php hanna code", I get no result from the query. Is there any reason, that $db is not working in hanna codes?
thanx for your help /thomas