How to query database for Header.php |
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 |
Messages In This Thread |
How to query database for Header.php - by xBarns - 11-23-2018, 06:57 AM
RE: How to query database for Header.php - by php_rocs - 11-23-2018, 09:38 AM
RE: How to query database for Header.php - by xBarns - 11-23-2018, 11:40 AM
RE: How to query database for Header.php - by xBarns - 11-23-2018, 12:20 PM
RE: How to query database for Header.php - by php_rocs - 11-23-2018, 01:58 PM
|