אשכול: קוד קטן בPHP
View Single Post
ישן 26-02-14, 18:16   # 1
EBSites
חבר מתקדם
 
EBSites's Avatar
 
מיני פרופיל
תאריך הצטרפות: Jul 2008
הודעות: 383

EBSites לא מחובר  

Arrow קוד קטן בPHP

היי,

אני מעוניין שזה יציג לי את המידע ב 3 טורים ו2 שורות, צריך עזרה.


PHP קוד:
<table>
<tr>

<?php
$rss 
= new SimpleXMLElement('http://www.ynet.co.il/Integration/StoryRss2.xml'nulltrue);

foreach(
$rss->xpath('channel/item') as $item)
{
        echo <<<EOF
<td>
<div><a href='
{$item->link}'>{$item->title}</a></div>
{$item->description}
</td>

EOF;
}
?>

</tr>
</table>
תודה לעוזרים.

Last edited by EBSites; 26-02-14 at 18:28..
  Reply With Quote