Muszę też wyświetlać bezpośrednio z pliku xml - z tym już sobie poradziłem.
Poradźcie jak mam teraz pobrać dane do bazy - chyba najlepiej przez tablice zapisywać?
Mam taki kod na razie (prawa kolumna jest skopiowana z lewej):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>IMIE I NAZWISKO STUDENTA</title> <link href="styl.css" rel="stylesheet" type="text/css" /> </head> <body> <div style="width: 900px; margin: auto;"> <div style="width: 900px;"> <div id="menu">KANAŁY - po najechaniu się rozwija lista.</div> <div id="logo">LOGO szerokość 700</div> </div> <div style="width: 900px; margin: auto; clear: both; padding-top: 10px;"> <div style="width: 45%; float: left; text-align: center;">ONLINE</div> <div style="width: 45%; float: right; text-align: center;">BAZA</div> <div style="width: 45%; font-size: 12px; float: left; border: solid; clear: left;"> <div style="width: 85%; margin: auto;"> <?php $rss = simplexml_load_file('http://www.cert.pl/rss_feed.xml'); $lacz= $rss->channel->item; foreach ( $lacz as $item ) { print ("<a href=\"" . $item->link . "\" style=\"font-size: 14px;\">" . $item->title . "</a><br>" . $item->description . "<br><br>"); } ?> </div> </div> <div style="width: 45%; font-size: 12px; float: right; border: solid; clear: right;"> <div style="width: 85%; margin: auto;"> <?php $rss = simplexml_load_file('http://www.cert.pl/rss_feed.xml'); $lacz= $rss->channel->item; foreach ( $lacz as $item ) { print ("<a href=\"" . $item->link . "\" style=\"font-size: 14px;\">" . $item->title . "</a><br>" . $item->description . "<br><br>"); } ?> </div> </div> </div> </div> <div id="stopka">STOPKA</div> </body> </html>