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}
?>
怎么改,谢谢!
解决方案 »
- Parse error: syntax error, unexpected T_STRING in D:\www\ITbdw\application\views
- 如何得到两个具体时间的相差分钟数
- PHP获取到的时间参数
- PHP如何生成此文件?
- ISAPI_Rewrite 防盗链的正则问题. 150分(全部的分都压上了)
- 有AJAX高手吗 ? 看个帖子。在那里给分 。。
- 谁能解释这种写法是什么意思:<?= @$user ?>
- 有没有人碰到过更新数据库后有数据丢失?
- !!!! 100分 nusoap utf8 -> gb2312 问题 !!!
- PHP数组问题,数组中加入KEY
- 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"]);
我点了链接后,参数也传过了,但是
它为什么不在右边的框架中显示,而是有弹出个页面呢?