Hi,
I've try to make template suggestions per vocabulary as described here.

and I've got this error:
Fatal error: Call to undefined function db_result() in /home/xxx/public_html/sites/all/themes/my-subtheme-name/template.php on line 59

on line 59 in templete.php I have:
$vid = db_result(db_query($sql, $tid));

What I'm doing wrong?

Comments

Jeff Burnz’s picture

Component: Theme settings » CSS/HTML
Category: task » support
Status: Active » Closed (works as designed)

What are you doing wrong?

Database query in a template, thats what you are doing wrong!

Dude, don't even go there, this is so wrong its not funny.