This is my config.php file
<?php $logo = "images/logo.gif"; $side_logo = "images/side-logo.gif"; $s_logo = "images/s-logo.gif"; ?>
This is the code where I'm trying to include it:
public function
DisplayButton($width,$name,$url,$active = true)
{
include "config.php";
echo "if ($active) {
echo "<td width = \"$width%\">
<a href=\"$url\">
<img src=\"$s-logo\" alt=\"$name"\" border=\"0\" /></a>
<a href=\"$url\"><span class=\"menu\">"$name"</span></a>
</td>";
} else {
echo "<td width=\"$width%\">
<img src=\"$side-logo\">
<span class=\"menu\">"$name"</span>
</td>";
}
}
If someone could show me how to properly do this I would appreciate it.


Sign In
Create Account


Back to top









