My Situation
Im very new to Joomla and I installed a component called EasyBlog. What Im trying to do is get category_id from jos_easyblog_post table for a particular post_id and and echo it on the template. Im also not quite sure if its ok to put database connection script on the template itself?
jos_easyblog_post has few columns,
id - Post Id
category_id - Category that post belongs to
Hits etc etc.
Lets say id which is Post ID is 5 and how can I conenct to the database and go to jos_easyblog_post and look for the post id 5 and get the category_id associated with it? Thanks guys.