How to use a function? - SOLVED
Posted: Sat Nov 11, 2006 3:31 am
Hi,
I have created a function like this:
And I want to know how to call on it properly. I currently get the $temptitle variable from a MySQL database which has the title of the page. I then call on it so that it can set the variables correctly and the function puts the title that I have already got into the variable for me. When I go to echo $pagetop and $pagebottom outside of the function they are blank. Why is this? Is there something I'm doing wrong?
Thanks in advance,
Matt
I have created a function like this:
Code: Select all
function SetHTML() {
$pagetop = "hello this is a title $temptitle goodbye";
$pagebottom = "this is the bottom $temptitle goodbye";
};
Thanks in advance,
Matt