leftframe中的left.php:
<?php
$prof_sql="select * from item where indicator='1'and item_grade='1'";
$prof_result=mysql_query($prof_sql,$linkid);
$m=mysql_num_rows($prof_result);
while($myrow=mysql_fetch_array($prof_result))
{
$parent_id=$myrow["item_id"];
echo $parent_id;
echo $myrow["item"]."<><br>";
$course_result=mysql_query("select item_id,item from item where item_superior='$parent_id'",$linkid);
$course_num=mysql_num_rows($course_result);
while($row=mysql_fetch_array($course_result))
{
$id=$row["item_id"];
echo $id;
printf("<a href=\"%s?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$PATH_INFO,$id,$parent_id,$row["item"]);
}
}
?>
在mainframe中:
<?php
if($i)
{a1.php;
}
else
{b1.php}
?>
怎么改,谢谢!
<?php
$prof_sql="select * from item where indicator='1'and item_grade='1'";
$prof_result=mysql_query($prof_sql,$linkid);
$m=mysql_num_rows($prof_result);
while($myrow=mysql_fetch_array($prof_result))
{
$parent_id=$myrow["item_id"];
echo $parent_id;
echo $myrow["item"]."<><br>";
$course_result=mysql_query("select item_id,item from item where item_superior='$parent_id'",$linkid);
$course_num=mysql_num_rows($course_result);
while($row=mysql_fetch_array($course_result))
{
$id=$row["item_id"];
echo $id;
printf("<a href=\"%s?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$PATH_INFO,$id,$parent_id,$row["item"]);
}
}
?>
在mainframe中:
<?php
if($i)
{a1.php;
}
else
{b1.php}
?>
怎么改,谢谢!
解决方案 »
- 请教个html中的问题 所有的标签中都可以加选择器么?
- opendir语句问题
- php如何判断用户打是www.mysite.com还是www.mysite.com/index.php
- 菜鸟请教:图上上传并提交相关图片文字信息
- 关于隐藏下拉菜单的问题
- . 和 -> 的区别
- 请一个奇怪的 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in 问题!
- 请大家来关注图片存储问题===========================
- 这是什么错误呀?幽默哦!
- post后的字符串变量的问题!!!!!!!!!!!
- php联接Postgres
- 关于使用模板的小问题!
<?php
if($i)
{a1.php;
}
else
{b1.php}
?> 语句的那个文件名
我的页面的框架集all.php(top.php,left.php,main.php)
可是改过后,我写在左边的:
printf("<a href=\"main.php?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$id,$parent_id,$row["item"]);
我点了链接后,参数也传过了,但是
它为什么不在右边的框架中显示,而是有弹出个页面呢?