2
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
As a guide might I suggest something like this?
<?php
if ( $result = $mysqli->query( "SELECT question, answerA,answerB FROM questions WHERE type='$type'" ) ) {
/* rather than string concatenation use an array */
$html=array();
$html[]="
<form action='' metho...