Non testato, ma la struttura è questacodice:<?php require("dati.php"); $tot = 10; $sql = "SELECT * FROM news_linkedfiles, news_files WHERE news_linkfiles.storyid = " . $_GET['id'] . " AND news_files.uid=news_linkedfiles.fileid AND news_linkedfiles.fileid!='0' LIMIT 0,$tot"; $rows = mysql_query($sql)or die (mysql_error()); while ($row=mysql_fetch_assoc($rows)){ echo " "; echo "Consulta gli allegati:"; echo "<a target='_blank' href=\"" . $row['url'] . "\">", $row['title'], " </a> "; echo "</p>"; echo " "; } mysql_close($connection); ?>

Rispondi quotando