This topic is locked

Version Number in Page Footer

1/27/2024 8:31:54 PM
PHPRunner General questions
D
druck281 author

I have a footer that displays the current version number of my application.

<div style="background-color: #f2f2f2;color:black;text-align:right;height:30px;margin:auto">MyApplication v<?php echo $_SESSION["version"] ?></div>

The only problem I am having is how to get the version number to display in the footer on the login page. Currently, I am using a DB::Lookup to pull the version number from the database and assign it to a $SESSION variable but I can't find a way to get that value prior to the user logging in. Is this even possible? If not, can I hide the footer on the login page?

Thanks!

D
druck281 author 1/27/2024

In the process of messing with this, I did something and now my top menu is locked to the page and scrolls. Meaning, when I scroll down the page, the top menu moves up out of view. I don't think I changed anything but the footer but even if I get rid of it, my menu still disappears when I scroll. :(

D
druck281 author 1/27/2024

OK...fixed the Top Bar. No idea how I unchecked that box in the Style Editor.

admin 1/30/2024

Since header file is a PHP file you can use any PHP code there. You do not need a session variable, you simply place your DBLookup() code there and display the results.