"; $qid = $row[0]; $questiontype = $row[2]; $anssql = mysql_query("select answer from 3312canswer where questionid = '$qid' union select answer from 3312wanswers where questionid = '$qid' order by rand()"); if (!$anssql) echo mysql_error(); echo '
'; echo ''; while ($ansrow = mysql_fetch_array($anssql)) { $answer = addslashes ($ansrow[0]); $answer = trim(str_replace("\n","",$answer)); echo $ansrow[0].'
'; } echo ''; '
'; ?>