Jump to content

Trf. of Variable from footer.php to header.php


smartguyin

Recommended Posts

In my index.php i had included header.php and footer.php

<?
include "header.php

//////// BODY

include "footer.php
?>

Now in header file there is title tag.... i want to use one $var variable from footer.php file but i am not able to do it coz footer.php file is included after header.php...... sooo i cannot get the Title in header.php file to be displayed........

footer.php file is the main body which interacts with mysql database and works.... sooo i suppose there is product description stated as a variable in footer.php i want to use tht variable in header.php .........
please tell me how to do it...........

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.