hi, im having trouble with functions. i have a code for switch statement:
Code: Select all
case 16:
$reporttitle = "Log File Report";
$reportfile = "rpt_dt_log_file.php";
if (empty($sort))
{$sort = "all";}
break;
when a link is clicked, case 16 will be generated and it will include that php page on this page.the php code for that is:
when i tried to click on the link, it will load smoothly on my computer, retrieval of data from the database is fine. but when i tried to upload this to our development server, and click on the link that will generate the $reportfile, nothing is retrieved. i tried to check if the value of $reportfile is null so i did this:
Code: Select all
if ($reportfile == null) {
echo "function returns null";
}
i uploaded the file to the server, and now, i can see the the echo string "function returns null". i was just wondering why this is happening. i have the same code on my computer and it is working fine, but on the server, it is not working. by the way, we have a linux os for the development server. please help me figure this out. thank you in advance.
