欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

取得phpcms网站下所有栏目的内容链接_PHP教程

程序员文章站 2022-05-16 10:50:14
...
';  
        $sql = '(select title,url from v9_news where catid='.$catrow["catid"].' order by id desc)   
         UNION (select title,url from v9_product where catid='.$catrow["catid"].' order by id desc)';  
        $result = mysql_query($sql);  
        while ($row=mysql_fetch_array($result)) {     
            echo $row['url']."";           
        }  
    }  
?>  

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/477135.htmlTechArticle?php $conf[DB_USER] = user; $conf[DB_PWD] = pwd; $conf[DB_NAME] = dbname; $conn = mysql_connect(localhost,$conf[DB_USER],$conf[DB_PWD]); if (!$conn) { echo 数据库连接错误!...