php生成rss订阅_PHP教程_编程技术
程序员文章站
2022-05-13 10:46:41
...
//$news为重数据库里取出的数组
$host = $_SERVER['HTTP_HOST'];
$xmls = '
foreach ($news as $keys => $values) {
//foreach ($values as $key1 => $value1) {
$xmls .= "
$xmls .= "http://$host/news.php?id=".$values['id']."";
//$xmls .= "
//$xmls .= "
$xmls .= "
//$xmls .= "
$xmls .= "
//$xmls .= "";
//}
}
$xmls .= "";
echo $xmls;
上一篇: 如何让CI框架支持service层,CI框架service层
下一篇: pdo怎么获取全部字段啊