Advertisement
Advertisement
| 08.05.2008 at 04:17AM PDT, ID: 23621767 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: |
if(checkSurvey($_GET['ID']))
{
$getQuestions = mysql_query("");
if(mysql_num_rows($getQuestions)>0)
{
$row_questions = mysql_fetch_assoc($getQuestions);
echo $row_questions['survey_question']. '<br /><hr />';
$getOptions = mysql_query("SELECT * FROM survey_options WHERE ID_question = '".mysql_real_escape_string($row_questions['ID'])."' ORDER BY ID ASC") or die(mysql_error());
$row_options = mysql_fetch_assoc($getOptions);
do {
echo '<br /><input type="radio" name="answer" id="'.$row_options['ID'].'" value="'.$row_options['ID'].'" onClick="ajax_insert_answer(\''.$row_options['ID'].'\', \''.$_GET['ID'].'\', \''.$row_questions['ID'].'\');" /><label for="'.$row_options['ID'].'">'.stripslashes($row_options['poll_option']).'</label>';
} while ($row_options = mysql_fetch_assoc($getOptions));
}
else {
echo 'Survey complete';
}
}
|