Jump to content

Archived

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

perezf

php in title

Recommended Posts

[code]<title>2fr3sh - <?php

if ($page = "") {
    echo "Home Page";
} else {
    echo $page;
}

?></title> [/code]

can some one tell me what i am doing wrong

Share this post


Link to post
Share on other sites
change it to

if ($page == "") { // (== not =)
echo "Home Page";
} else {
echo $page;
}

Share this post


Link to post
Share on other sites

×

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.