quiz

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lerator
Forum Newbie
Posts: 3
Joined: Fri Apr 25, 2008 4:57 am

quiz

Post by lerator »

hi i want to develop a quiz but i cant seem to be getting it right below is my code


<?php
$q1 = $_POST["q1"];
$q2= $_POST["q2"];
$q3 = $_POST["q3"];
$q4 = $_POST["q4"];
$q5 =$_POST["q5"];
$q6 =$_POST["q6"];
$q7 = $_POST["q7"];
$q8 =$_POST["q8"];
$q9 =$_POST["q9"];
$q10 = $_POST["q10"];
$q11 =$_POST["q11"];
$q12 = $_POST["q12"];

require "../conn.php";
$con = getConn();

if(!$con)
die ("Error Connecting to mysql");
else
{
/*echo "Successfully connected to mysql";*/
mysql_select_db($db);



$data = "SELECT * FROM d2squiz;";
$data = mysql_query($data);

$row = mysql_fetch_assoc($data);
{
echo



//dim $aa;
for each $x in $rs.$fields;
$aa = $aa+$x.$value;

}
?>
<br><?= $aa ?>
mikelbring
Forum Commoner
Posts: 38
Joined: Sat Jan 05, 2008 5:28 pm

Re: quiz

Post by mikelbring »

Your code is really goofy.
Post Reply