memu.php
<?php
include "db.php";
if($group_id != '')
{
$query_2=mssql_query("select * from linkman where group_id=$group_id");
while($array_2=mssql_fetch_array($query_2))
{
echo $array_2[linkman_name];
}
}
?>
代码如上,数据库是mssql,请问各位gg,要用什么办法实现啊!
或者有没什么参考的原代码给我,真的很急啊!!
<?php
include "db.php";
if($group_id != '')
{
$query_2=mssql_query("select * from linkman where group_id=$group_id");
while($array_2=mssql_fetch_array($query_2))
{
echo $array_2[linkman_name];
}
}
?>
代码如上,数据库是mssql,请问各位gg,要用什么办法实现啊!
或者有没什么参考的原代码给我,真的很急啊!!
麻烦大家给改改!
send.php
<frameset cols="200,*">
<frame name="left" src="tree.php">
<frame name="right" src="memu.php">
</frameset>
/**
* display 方法
* 功能 显示
*/
function display($type="node_all",$key=array("id","pid","text","link")) {
switch($type) {
case "table":
$this->table();
break;
case "node_all":
echo "<base traget='right'>"; //新增的
$this->out = $this->node_all(0,$key);
break;
}
echo $this->out;
$this->javascript();
}
还是不行啊!右边什么都没有!还是变成左边显示出对应的内容!!
main.php
<frameset cols="*,*">
<frame name="left" src="树的应用_01.php">
<frame name="right" src="">
</frameset>树的应用_01.php
<?php
/***
Tree 类样例1
从数组读取数据,生成完整的树。
***/include "tree_class.inc.php";
class mytree extends tree {
/**
* display 方法
* 功能 显示
*/
function display($type="node_all",$key=array("id","pid","text","link")) {
switch($type) {
case "table":
$this->table();
break;
case "node_all":
echo "<base target='right'>";
$this->out = $this->node_all(0,$key);
break;
}
echo $this->out;
$this->javascript();
}
}
$t = new mytree;$ar = array(
array(id=>1,pid=>0,text=>"PHP",link=>"#",link=>"树的应用_01.php"),
array(id=>2,pid=>1,text=>"函数",link=>"树的应用_02.php"),
array(id=>5,pid=>1,text=>"类",link=>"树的应用_03.php"),
array(id=>3,pid=>0,text=>"ASP",link=>"树的应用_04.php"),
array(id=>4,pid=>2,text=>"数组",link=>"树的应用_05.php"),
array(id=>6,pid=>3,text=>"函数",link=>"树的应用_06.php"),
array(id=>7,pid=>0,text=>"JSP",link=>"树的应用_07.php")
);foreach($ar as $v) {
$t->insert($v);
}$t->display();
?>
郁闷啊,大哥,你打错了,我郁闷了一个下午echo "<base traget='right'>"; //新增的
是echo "<base target='right'>"; //新增的
还好终于看出来了,还是要好好谢谢你!!!!
感激ing!!!