Tabel i php
Jeg har en index.html fil der ser således ud:<html>
<body bgcolor="#b0b0b0">
<meta http-equiv="refresh" content="0;URL=start.php?config=config.inc.php">
<title>Supershop</title></HTML>
Jeg vil så gerne have at indholdet bliver vist i en tabel på den kaldte side start.php men hvor skal jeg sætte tabelkoderne ind ???
Start.php ser således ud:
<?php
# Uncomment next two lines to create 'own session_ID'
#mt_srand ((double)microtime()*1000000);
#$sess=time()+mt_rand();
# OR use the next two lines to create a session_ID via cookie by PHP itself. Cookie is unused after that.
# If using 'own session_ID' comment next two lines.
session_start();
$sess=session_id();
session_unset();
require("./config_db.inc.php");
require("db_func.inc.php");
$config = ereg_replace(":","", $config);
$config = trim(ereg_replace("../","", $config));
$config = trim(ereg_replace("/","", $config));
if (($config=="")|| (!eregi(".inc.php",$config))){$config="config.inc.php"; echo "<!--$config-->\n";}
require("./$config");
$md_pw = md5("public");
$ltime = time();
$ip = $REMOTE_ADDR;
$logouttime = $ltime-86400;
$logout_res = db_query("select session from online where ltime<'$logouttime' and online.user_ID='2'") or db_die();
while ($logout_row = db_fetch_row($logout_res)) {
db_query("delete from cart where session='$logout_row[0]'") or db_die();
}
db_query("delete from online where ltime<'$logouttime' and online.user_ID='2'") or db_die();
$ins_res=db_query("insert into online values('%','2','$md_pw','$sess','$config','$ltime','$ip','1','1','','')") or db_die();
echo "<html><meta http-equiv=\"refresh\" content=\"0;URL=login.php?sess=$sess\">\n";
echo "<title>$site_title</title>\n";
?>
</head>
<body>
</body>
</HTML>
