here i am trying to redesign a website i've been building
and as soon as i start with the php code the site doesn't display anything anymore
wich is weird because i walked through every line of the code and i couldn't discover
a thing. i discovered where the error is though
the whole disaster starts when i'm trying to input php. i am also using tables to make the site instead if the previous one that used <div> tags for this.
the first part of this code is the most important i think so i will post that seperate from the rest.
Code: Select all
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
function getmicrotime() {
list($usec,$sec) = explode(" ",microtime());
return((float)$usec + (float)$sec);
}
$time = getmicrotime();
$include_index = 1;
session_start();
$db = new COM("ADODB.Connection") or die("Kan ADO niet starten");
$db->Open("dsn=@@@_Inventory;server=sr0005.@@@.net;database=@@@_ICT;Trusted_Connection=yes");
$rs = $db->Execute("select waarde from menu_instellingen");
$s_ItemsPage = $rs->fields['waarde']->value;
$rs->MoveNext();
$s_Titel = $rs->fields['waarde']->value;
$rs->MoveNext();
$s_MenuSkin = $rs->fields['waarde']->value;
$rs->MoveNext();
$s_VoetTekst = $rs->fields['waarde']->value;
$rs->MoveNext();
$rs = $db->Execute("SELECT menu_functie FROM menu_functie");
while (!$rs->EOF) {
include("system/".($rs->fields['menu_functie']->value).".inc.php");
$rs->MoveNext();
}
// Start buffering the output
ob_start();
if (!$cache_header = readCache('3_header.cache', 0)) {
// XHTML
echo "\n <head>";
echo "\n <title>$titel</title>";
echo "\n <SCRIPT src='@@@/show.js' type=text/javascript></SCRIPT>";
echo "\n <link href='skin/".$s_MenuSkin."/screen.css\' rel='stylesheet' type='text/css' />";
echo "\n <LINK media=print href='@@@/print.css' type=text/css rel=stylesheet>";
echo "\n <meta http-equiv=\"MSTHEMECOMPATIBLE\" content=\"no\" />";
// JAVASCRIPT FUNCTIES
include("system/javascript_dropdown_page.inc.php");
include("system/javascript_bevestiging.inc.php" );ps as always the @@@ is the name of the company doesn't make a difference