מה הבעיה פה
<? 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 * from linkssets order by id desc"; $res = mysql_query($qur) or die (mysql_error()); while ($row = mysql_fetch_assoc($res)) { $ids[] = $row['id']; $key1[] = $row['kayword']; $path[] = $row['path']; } } foreach ($ids as $i => $kays) { if ($idpage == $kay1[$i]) { $inc = $path[$i]; } } ?>
המשתנה $kay1 לא מוכן לקבל נתון למרות שיש והוא קיים בממסד הנתונים עצמו