Home >Backend Development >PHP Tutorial > 这段代码为啥无法 加入链接

这段代码为啥无法 加入链接

WBOY
WBOYOriginal
2016-06-13 12:40:33840browse

这段代码为什么无法 加入链接啊

<br>
<br>
 <br>
  <title> New Document </title><br>
 <br>
<br>
 	<br>
  <?php <br />
$link   = mysql_connect( '127.0.0.1', 'root', '520928' ) or die( mysql_error() );//连接数据库服务器<br>
          mysql_select_db( 'test' );//选择数据库<br>
          mysql_set_charset( 'utf8' );//设置字符编码<br>
 <br>
             $sql = "SELECT * FROM wxtree";//查询分类表<br>
          $result = mysql_query( $sql );<br>
            $tree = array();//初始化一个数组<br>
          while( $row  = mysql_fetch_assoc( $result ) )<br>
                 {                 	 <br>
                     $tree[$row['fid']][$row['id']]  = $row['cat_name'];//创建分类数组                                                  <br>
                 }<br>
          mysql_close( $link );//关闭数据库<br>
		  <br>
        print_r($tree[02]);<br>
echo '-------------------------------------------' . "\n";<br>
 <br>
//递归函数<br>
  <br>
function for_category( $arr = array(), $arr2 )<br>
{	 	<br>
    echo "
    ";
        foreach ( $arr as $k => $v )
        {   
            if ( isset( $arr2[$k] ) && is_array( $arr2[$k] ) )
            {  
                echo "
  • $k $v           W3School 添加  编辑   删除 " ;           
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn