Originariamente inviato da Crypt
Si è sufficiente.
Prima di tutto devi inserire dei dati nell tabela creata (con una query INSERT oppure direttamente da phpmyadmin)
Successivamente devi fare una quesry del tipo SELECT id FROM flash_news WHERE (condizione)
poi la scrivi in un array
$array=mysql_fetch_row(nome query)
e infine scrivi il dato dell'array..
sono stato molto stringato...se ti serve una spiegazione più "profonda" chiedi pure
è già qualcosa..
ok per scrivere da phpmyadmin!
ma se io ho una cosa del genere:
codice:
<?php
#***********************************
# XML OUTPUT
#***********************************
include('admin/functions.php');
connect('tennisco_','','tennisco_parse','localhost');
$query = 'SELECT id, author, title, body, FROM_UNIXTIME(timestamp, \'%M %D %Y\') date
FROM flash_news
LIMIT 20';
$result = mysql_query($query);
$nl = "\r\n";
echo '<?xml version="1.0" encoding="ISO-8859-1"?>' . $nl;
echo '<ROOT>' . $nl;
while($r = mysql_fetch_array($result)){
echo '<news id="' . $r['id'] . '" title="' . stripslashes2($r['title']) . '" date="' . $r['date'] . '" author="' . stripslashes2($r['author']) . '">' . $nl;
echo '<body><![CDATA[' . stripslashes2($r['body']) . ']]></body>' . $nl;
echo '</news>' . $nl;
}
echo '</ROOT>' . $nl;
?>
come la posso adattare per vedere qualcosa?
troppo difficile?