err on php code
Posted: Fri Feb 07, 2003 4:33 pm
Code: Select all
Warning: Failed opening '' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site13/fst/var/www/html/main.php on line 20the code is
Code: Select all
<?
if (!isset($type)) {
header("location: http://" .$_SERVER['HTTP_HOST'] . "/main.php?type=htm/php&idpage=main");
}
include("includes/dbs.php");
$lk = mysql_connect($serv,$user,$pass) or die (mysql_error());
mysql_select_db($dbname[0],$lk);
$qur = "select * from linkssets";
$res = mysql_query($qur) or die (mysql_error());
while ($row = mysql_fetch_assoc($res)) {
if ($type = "htm/php") {
if ($row['kayword'] == $idpage) {
$inc = $row['path'];
}
}
}
?>
<html>
<body>
<? include($inc); ?>
</body>
</html>