PHP Code:
$questions="";
$answers="";
$i=1
$res=mysql_query("Select * from database");
while($row=mysql_fetch_array($res))
{
$questions .="$i: $row[question] <br>";
$answers .= "$i: $row[answers] <p>";
$i++;
}
echo "Your faq is:<br>
$questions
<hr>
And the answers are:<br>
$answers
";