PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
bironeb
Forum Commoner
Posts: 59 Joined: Thu Nov 20, 2003 12:02 pm
Post
by bironeb » Fri Mar 12, 2004 4:09 pm
With the below code, im getting an error: Undefined variable: mlink
Code: Select all
<?php
if (file_exists("includes"e; . basename($mlink) . ".php")) {
include("includes"e; . basename($mlink) . ".php");
}
else
{
$link = "new";
$str = "includes"e; . $link . ".php";
include($str);
}
?>
any ideas?
andre_c
Forum Contributor
Posts: 412 Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah
Post
by andre_c » Fri Mar 12, 2004 4:10 pm
You need to define $mlink = 'equals something'; before you use it