Jump to content

AT-2013

Members
  • Posts

    10
  • Joined

  • Last visited

AT-2013's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thnx guyz for reply. But it would be very helpful if you guyz have a little time for my problem to solve & check my coding.
  2. Hi Frndz!! I have created a simple quiz system but the problem is the questions aren't in random order. If possible need help about how to make the questions appear randomly each time & once. I have tried to do so but failed. I am sending the codes & tables below: (create a database named 'online') Thnx in advance. exam_login1.php examserver_modelTest.php members1.php ms.php grammar.zip online2.zip scores.zip
  3. Hi Frndz!! It's me again. I have created a simple quiz system but the problem is the questions aren't in random order. If possible need help about how to make the questions appear randomly each time & once. I have tried to do so but failed. I am sending the codes & tables below: (create a database named 'online') Thnx in advance. examserver_modelTest.php exam_login1.php members1.php grammar.zip online2.zip scores.zip
  4. Hi Frndz!! It's me again. I have created a simple quiz system but the problem is the questions aren't in random order. If possible need help about how to make the questions appear randomly each time & once. I have tried to do so but failed. I am sending the codes & tables below: (create a database named 'online') Thnx in advance.
  5. Thnx a lot Psycho 4 your msg. It's jst working fine. You have done it wid radio buttons but I've jst used links to submit an answer. Now I need to keep track of them means $_SESSION['marks'] = 0 in my code as you saw. How could I use the above idea to mine as the answers are submitted by clicking?? Your code just shuffles all the stuffs in the question also the answers. If possible can you help a little to make understand that with my coding style & how to keep the tracks of answers?? Thnx again.
  6. Guru! Wt you have mentioned is perfect. My question sets will alwyz come randomly nt d answers when each a new user enters into the exam. Like I should have a subject table consisting of Physics, Maths, Computer, General knowledge & questions are needed to b set in the database before. Each time the questions sets are needed to come randomly from the table. I have made a script but not working according to the need. If possible any modification to the following codes will be appreciated. Thnx every1 4 reply. books.zip completed.zip ms.zip subjects.zip question5.zip ques.zip
  7. Guru! Wt you have mentioned is perfect. My question sets will alwyz come randomly nt d answers when each a new user enters into the exam. Like I should have a subject table consisting of Physics, Maths, Computer, General knowledge & questions are needed to b set in the database before. Each time the questions sets are needed to come randomly from the table. I have made a script but not working according to the need. If possible any modification to the following codes will be appreciated. books.zip completed.zip ms.zip subjects.zip question5.zip ques.zip
  8. T (ms.php): <?php class dbconn{ var $dblink; function dbconn($dbname, $dbhost="localhost", $dbuser="root"){ $this->dblink = mysql_connect($dbhost,$dbuser); mysql_select_db($dbname); } function stresc($str){ return mysql_real_escape_string($str); } function close(){ mysql_close($this->dblink); } } class dbrs{ var $rs; var $row; var $num; var $rows=array(); function dbrs($sql,$ret){ $ret=($ret==1)?"exeret":"exenr"; $this->$ret($sql); } function exenr($sqlquery){ mysql_query($sqlquery); } function exeret($sqlquery){ $this->rs = mysql_query($sqlquery) or die(mysql_error()); $this->num = mysql_num_rows($this->rs); while($row=mysql_fetch_array($this->rs)){ $this->rows[] = $row; } } } ?> (fail.php): <center><h1>You are failed</h1> <h2>You may try again later</h2> <table border = "1"> <tr> <td>Your grades are less than 50%</td> </tr> </table> <a href = "index.html">Logout</a> </center>
  9. Hi!! I am new to PHP & i need to submit a project on online admission system where question sets are displayed randomly each time without repeat each time from 4 tables (subject table Physics, Maths, Computer, General knowledge) when a user logged in. This process should be automated like question sets will be in database. From each table questions should be randomly presented. I need it badly & need to submit on 6th april. So any code/script or demonstration will be appreciated. I have prepared a script only with one table. But need to work it according to the requirement. I am posting it here with table. Thnx. (SELECT * FROM table order by rand() limit 1") doesn't work. Any alternative?? ques.php completed.php subjects.zip books.zip question5.zip
  10. Hi!! I am new to PHP & i need to submit a project on online admission system where the question sets should be displayed randomly each time a user logged in from 4 tables which implies subject table. I need the idea immediately & if possible Plz!! Help me 2 get a script or any demonstration about it. I have prepared a script but nt working according to the requirement. Thnx.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.