473,503 Members | 9,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A PHP/mySQL Web Survey..

GTF
PHP Web Survey Idea..

I have been given an opportunity to create a web based survey. This is a
fairly lengthy survey of 60 pages on paper (various multiple choice and
free form).

These are the Requirements:

-Provide a web interface to a database
-Database stores the data (duh), but the capacity to extract the data
into an Excel sheet.

The survey is being done by 20-30 different organizations.

My immediate thoughts were to use PHP and mySQL for this project. These
are my ideas for database setup (using mysql):

Here are my tables:

questions
---------------
fields: QID# (primary key), QuestStr, Qtype (multiple choice, t/f, or
freeform)

answers
---------------
fields: WorkerID# (primary key), QID# (foreign key), AnswerStr,
CommentStr

possible_answers (for multiple choice)
-----------------
fields: QID# (primary key), answerA, answerB, answerC, answerD

The other tricky part is that the 2nd section of this survey can, in
some instances, be performed by more then one person. To handle this, I
was thinking the first part of the survey would give the survey person a
control panel of sorts (the original survey person would know how many
people would be doing section 2 in his/her respective organization), to
determine how many people will be contributing to this particular
survey.

I was thinking this table would take care of this problem:

users_access
-----------
fields: WorkerID#(primarykey), allaccess (integer value: 0 - no access,
1 - all questions, 2 - limited questions 20 to 40, 3 - lim. questions 30
to 50)
Obviously the WorkerID#'s must be given to the original survey people (a
login/password page most likely). Upon loggin in, they must determine
how many people in their respective organizations will be contributing
to section 2 (and what questions). After completing this, the database
will assign new WorkerID#'s and insert it into the users_access table
for use. The 'boss' will then copy down these ID's/password's for his
managers to complete their portion of the survey.

I would appreciate feedback for this idea, good or bad. I appreicate
constructive criticism. I know this is heavy on the database, but I
wanted to know if PHP was the feasable solution for this sort of web
survey (can it get the job done, which I think it can).
-GTF

Jul 17 '05 #1
1 5691
On Fri, 05 Dec 2003 01:24:04 -0000, GTF <GT*@nowhere.com> brought
forth from the murky depths:
PHP Web Survey Idea..

I have been given an opportunity to create a web based survey. This is a
fairly lengthy survey of 60 pages on paper (various multiple choice and
free form).
That is one damned long survey, sir. I sincerely hope this is a
captive audience.

These are the Requirements:

-Provide a web interface to a database
-Database stores the data (duh), but the capacity to extract the data
into an Excel sheet.
I did this with a complete Federal Form 1040 online for a client
a couple years ago. He was too cheap to go with a database so we
just gathered the info and spit it out in email to him. He did the
extraction to his tax program. There were over 380 potential variables
but we got them on 8 pages. Most were captured 4-6 on a line.

The survey is being done by 20-30 different organizations.
How did you get them to agree on the questions? Or is that why
it's a 60-pager? ;)

My immediate thoughts were to use PHP and mySQL for this project. These
are my ideas for database setup (using mysql):
Should be doable. Both programs are suitable.

Here are my tables:
I'll let the more experienced programmers field those questions
since nearly all of my experience is working with existing DBs.
(Sorry for the database pun there, G.)

I would appreciate feedback for this idea, good or bad. I appreicate
constructive criticism. I know this is heavy on the database, but I
wanted to know if PHP was the feasable solution for this sort of web
survey (can it get the job done, which I think it can).


Good idea, PHP is great for this, but I question the length
of the survey. I thought the 8 pages of queries were too long
but we broke them up into 4 sections. An hour online is an
eternity even for experienced computer users, but that's about
how long the 1040 forms took to fill in.

"SIXTY pages?" he said, whilst wiping his brow and sighing deeply.
-----------------------------------------------------------
--This post conscientiously crafted from 100% Recycled Pixels--
http://diversify.com Websites: PHP Programming, MySQL databases
================================================== ===============
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4427
by: Jon Dellaria | last post by:
I have been using MySql as the database using JSP's and JavaBeans but recently I have wanted to start using the database connection pooling mechanism built into TomCat. I think I am having a...
0
1522
by: Neil Hambleton | last post by:
Dear MySQL Contributors, I am studying for a Master's degree with Henley Management College in the UK, and in the past have used a variety of Open Source Software. As part of my course I am...
0
1250
by: Goh, Yong Kwang | last post by:
Dear all, We are Chen, Kian Siong and Goh, Yong Kwang from the National University of Singapore (NUS), School of Computing performing academic research for our honours year thesis. Our current...
8
1595
by: Marek Lewczuk | last post by:
Look at this: http://www.zend.com/images/survey/14.gif I belive that there is only one reason why most of people are using MySQL - it has native, very easy to install version for windows. ...
3
2485
by: Miyagi | last post by:
I am running a custom setup that the workgroup here needs to run. IIS6 with Windows Server 2K3. PHP install was a little tricky but only required the Environment Path to include C:\PHP\ and use the...
1
1924
by: runsun | last post by:
I am new in PHP/Mysql. I want to input sth from website to mysql, then output the formatted data to .txt, and finally use Excel to open the .txt file. I believe there are better and simpler ways than...
1
3699
by: benmanns | last post by:
I am writing a web application with a MySQL backend that will have multiple users taking various surveys. Each survey has a different number of questions; each question has two types of answers:...
4
3491
by: arty | last post by:
I must build a survey with many question (around 50), so i cannot have the survey in just one page, i would like to have it on many pages so one user will hit submit many times, how can i make so in...
0
7294
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
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
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
5602
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,...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.