View Single Post
Old 08-20-2002, 08:34 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,712
redhead is on a distinguished road
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
         "

__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote