QnA (Questions and Answers)
query($sql);
if ($result->num_rows > 0) {
// Output data setiap baris
while($row = $result->fetch_assoc()) {
$q = $row["question"];
$a = $row["answer"];
echo "
";
echo "
";
}
} else {
echo "0 results";
}
?>
";
echo "
";
echo "";
echo "
";
echo "";
/* echo "
";
echo "";
echo "
";
echo "List group item heading
3 days ago"; echo "Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta."; echo ""; echo "";
echo "
"; */
echo "List group item heading
3 days ago"; echo "Question
$q";
echo "
";
echo "";
echo "
";
echo "Answer
$a