Quote:
<?php
$db = mysql_connect("localhost", "triley_test", "test");
mysql_select_db ("triley_content");
$result = mysql_query("select * from software");
while($r=mysql_fetch_array($result)) {
$section = $r[section];
$title = $r[title];
$content = $r[content];
/* Presuming the 3 title's: Section, title and content were colum headings and you have rows of data underneath them then this would fetch every row of data under those headings. the next part will print the data to the page and stop the query */
$txt="
";
echo $section;
echo $txt;
echo $title;
echo $txt;
echo $content;
}
?>
and the result is