dongshu4755 2014-10-22 02:41
浏览 5

将网站内容与外部网站rss相结合

I'm currently running a classified ads site and planning to display my own content combined with and external site rss. So here is what i got right now after the db query for the jobs ads,

while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)){


    echo '<div class="media margin-none">
           <a class="pull-left bg-inverse innerAll text-center" href="#"><img src="'.$foto.'"    share_alt="" width="100" height="100"></a>
            <div class="media-body innerAll">
             <h4 class="media-heading innerT">
              <a href="' . $row['title'] .'-da' . $row['id_ad'] . '" class="text-inverse">'. $remuneracion .' &nbsp; ' . substr(ucfirst(strtolower($row['title'])), 0, 53) . '</a> <small class="pull-right label label-default"><i class="fa fa-fw fa-calendar-o"></i> ' . $row['date_created'] . '</small></h4>                                           
            <p>' . substr(ucfirst(strtolower($row['description'])), 0, 80) . ' ...</p>';

    echo '</div>
            </div>
            <div class="col-separator-h"></div>';
}   

echo pagination($statement,$per_page,$page, $url_filtros, $filtros);
?>

it is the while loop that i use to display ads from my database, what could be the best way to display (in this same loop?) other site's rss feed?

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)