473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Online Exam in php

92
Hi,

Can anyone suggest me how to do online exam in php, Here my doubt is, i displayed 1st question with 4 options. But if user click next button, i need to display 2nd question, then 3rd.... goes on. and the user is not allowed to move to the previous question.

with this query, i m displaying 1st question and its options

Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM question where cat_id='".$_GET['cat']."' ORDER BY question_id Limit 1
How can i do this..

Thanks in Advance.
Jan 13 '10 #1
3 3782
Dormilich
8,658 Expert Mod 8TB
you could save the current question number in a session var and only this question is allowed to be processed.
Jan 13 '10 #2
Limno
92
How can i know that current question number.

I m inserting question with different category, user test is based on category.

it will be random quesion numbers in database.
Jan 13 '10 #3
Dormilich
8,658 Expert Mod 8TB
use the primary key from the database (question_id).
Jan 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Vanessa BJ | last post by:
Hi. I am an amateur Java enthusiast. I currently work as a carpenter and I moonlight on the weekends as a photographer. I'm trying to transition a career change. Which Java exam should I start...
0
by: RS | last post by:
Hi, I am looking for some open source online test/exam system using ASP.net and SQL server 2000. Does anyone have any suggestion? Thank you! RS
29
by: Mr Newbie | last post by:
Im going to be looking to do this exam fairly soon, but ive done a couple of practice tests and found them to be a bit tricky in as much as you have to REALLY READ the questions carefully else they...
0
by: jack | last post by:
Hi all, Im planning to take dot net certification exam. i want to know whether is there any site which helps you in preparing for exam. like taking line test for 30 mins so that before taking...
0
by: allonlineexam | last post by:
Dear Friends, I am doing exam for other person. I am doing all online exam. like....... Microsoft MCP,MCAD, MCSE, MCSA, MCDBA, MCDST. Cisco
7
by: php.ajay | last post by:
Hi I have a great problem. I have successfully completed ONLINE EXAM project.But Finally client asked "I want to include time for my site."O.K I tried But every time when i click on next question...
3
by: raghulvarma | last post by:
I am developing a online exam project in that I have a table which has questions and every question has different marks.I am selecting questions in a random manner using newid(), now I am facing...
6
by: Freshers Jobs | last post by:
Please try to this exam : http://idealbench.com
3
by: honeya51 | last post by:
here is the code for my jsp <%@ page import="java.sql.*,java.io.*,java.util.*" %> <%! Connection con = null; PreparedStatement pst = null; ResultSet rs=null; %> <%
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.