Exemple #1
0
    $i++;
    //$row[3]=1;
    if ($row[$i] != 0 && $row[$i] != '0') {
        //echo "<br /><img src=\"$rootpath".$questionimagefileloc.$row[0]."-qsn-c.jpg\" width=100 height=100 />";//OPT C
        echo "<br>" . textimage($row[$i]);
    }
    $i++;
    ?>
			</td>
			<td class="brdrtable"><?php 
    echo $row[$i];
    $i++;
    //$row[3]=1;
    if ($row[$i] != 0 && $row[$i] != '0') {
        //echo "<br /><img src=\"$rootpath".$questionimagefileloc.$row[0]."-qsn-d.jpg\" width=100 height=100 />";//OPT D
        echo "<br>" . textimage($row[$i]);
    }
    $i++;
    ?>
			</td>
			<td class="brdrtable"><?php 
    echo $row[$i];
    ?>
</td>
			<td class="brdrtable"><a class="delqsn" delid="<?php 
    echo $row[0];
    ?>
" href="#">Delete</a></td>
		</tr>
		<?php 
}
Exemple #2
0
    $count = 0;
    while ($row = mysql_fetch_array($resqsn)) {
        $data["qsn"][$count]["id"] = $row['ans_id'];
        $data["qsn"][$count]["qsnno"] = $count + 1;
        //$row['ans_qsn_no'];
        $data["qsn"][$count]["qsnid"] = $row['qsn_id'];
        $data["qsn"][$count]["qeustion"] = $row['qsn_qsn'];
        $data["qsn"][$count]["qimage"] = textimage($row['qsn_img']);
        $data["qsn"][$count]["option"]["a"] = $row['qsn_opt_a'];
        $data["qsn"][$count]["option"]["b"] = $row['qsn_opt_b'];
        $data["qsn"][$count]["option"]["c"] = $row['qsn_opt_c'];
        $data["qsn"][$count]["option"]["d"] = $row['qsn_opt_d'];
        $data["qsn"][$count]["img"]["a"] = textimage($row['qsn_img_a']);
        $data["qsn"][$count]["img"]["b"] = textimage($row['qsn_img_b']);
        $data["qsn"][$count]["img"]["c"] = textimage($row['qsn_img_c']);
        $data["qsn"][$count]["img"]["d"] = textimage($row['qsn_img_d']);
        $data["qsn"][$count]["status"] = $row['ans_status'];
        $count++;
    }
    $data["qsncount"] = $count;
    //print_r($_GET);
    //sleep(2);
    sendjsondata();
    //endpage();
}
unset($_SESSION["examstarted"]);
if (isset($_SESSION["examstarted"])) {
    //echo "jkd";
    redirect("myprograms.php");
}
include 'includes/upper.php';