Welcome Guest, Not a member yet? Register   Sign In
How to query database for Header.php
#1

Hi all,

first of all, thanks for such a nice product, it helped me quite nicely to achieve what i needed.

To my question, i utilized the information in https://stackoverflow.com/questions/9540...odeigniter to load a header and footer for my website.

My header contains a drop down (in a slide out menu, using js), the contents of which i would like to fill from a database query. I am using database queries in for my "templates", but for some reason i fail to understand how i would go on and do this for my header.

And while i am at it, how would i store a variable for permanent use, the above mentioned drop down is supposed to select a "default" project, which is seldomly changed, thus (it's ID) should be available throughout the use of other pages of the website.

If this is answered anywhere please let me know, i did use the search but either i am too blonde or i didn't look for the right keyword.

Thanks a lot!
x
Reply


Messages In This Thread
How to query database for Header.php - by xBarns - 11-23-2018, 06:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB