473,545 Members | 4,241 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_answer s (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#(prima rykey), 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 5693
On Fri, 05 Dec 2003 01:24:04 -0000, GTF <GT*@nowhere.co m> 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
4430
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 problem with defining my JDBC resource within Tomcat. I am pretty sure that my code is correct (but I am not certain), and the problem is with...
0
1530
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 conducting a survey in an attempt to identify the critical success factors for Open Source projects. If you are a user or developer for MySQL, I would...
0
1256
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 research covers open source projects, its communities, developers and users. In our study, we hope to be able to solicit the objective opinions of...
8
1602
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. ---------------------------(end of broadcast)---------------------------
3
2488
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 php.ini in the PHP dir. The htdocs directory is located on the D:\ I also installed MySQL on the D:\ and have the PATH variable for that as...
1
1929
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 what I did. But I want to know what's wrong in my codes. Here are the details: In survey.html, I need people input their ID and comment. In Mysql,...
1
3713
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: string and enum; each enum has different numbers of values. I want to be able to dynamically create the survey, assign questions, set question types...
4
3496
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 the database there's always one Row per user and not many rows as many submit per user?
0
7464
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7396
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7751
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5323
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3440
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1874
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
700
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.