php help
Posted: Mon Feb 10, 2003 3:21 pm
Code: Select all
if (!isset($idpage)) {
header("location: http://" .$_SERVERї'HTTP_HOST'] .$_SERVERї'PHP_SELF'] . "?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);
switch ($type) {
case "htm/php":
$qur = "select id , kayword , path from linkssets order by id desc ";
$res = mysql_query($qur) or die (mysql_error());
$row = mysql_fetch_assoc($res);
$idї] = $rowї'id'];
$keyї] = $rowї'keyword'];
$pathї] = $rowї'path'];
foreach ($id as $val => $kays) {
if ($idpage == $pathї$val]) {
$inc = $pathї$val]; #line of the prob
}
}
}the prob that it's not set inc at all