Creating a Web Survey

This is a discussion on "Creating a Web Survey" within the PHP Forum section. This forum, and the thread "Creating a Web Survey are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 16th, 2006, 20:37
New Member
Join Date: Nov 2006
Location: scotland
Age: 29
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Creating a Web Survey

I am a designer who has been asked to create an online web survey for a company to integrate into thier existing site, as the company does not want to shell out to people like websurveyor etc each time. I can easily create the front end design using html but my experience of php/mysql is limited and general.

Can anyone recommend software that would handle the data on the server side(but still give freedom of designing the survey)?

Or alternatively how difficult would it be to create a Web Database Application using php/mysql for surveys?
Reply With Quote

  #2 (permalink)  
Old Nov 16th, 2006, 21:12
Junior Member
Join Date: Nov 2006
Location: London
Age: 22
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a Web Survey

This is pretty easy, you create your form in html, handle it with php and store it with mysql.

You would need a mysql server, SQL is very easy, especially for something like this. With this you would set up the relevant tables in the database, in the table you need the columns.

You would use javascript to check that forums had been correctly entered. You then handle the forum with php and input it into the database.

Whats left would be a backend which would display the data.

This should help you

http://www.zend.com/zend/tut/tutorial-jenkins.php
Reply With Quote
  #3 (permalink)  
Old Nov 20th, 2006, 14:40
New Member
Join Date: Nov 2006
Location: scotland
Age: 29
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a Web Survey

Thanks for the advice!

I am slowly getting there but have come across this error when trying to put info into my database.

"Error!
There was an error processing your request. mySQL returned the following:

1046
No database selected"

hoever I have selected my database using the following - (entering in correct details!!)

$dbc = mysqli_connect("localhost", "username", "password", "db_name");
if(!$dbc)
{
die('<span style="color: #F00; font-weight: bold;">Error!</span><br />
There was error connecting. mySQL returned the following:<br /><br />'.
mysqli_connect_errno().'<br />'.mysqli_connect_error());
}

do I need more code to connect properly????
Reply With Quote
  #4 (permalink)  
Old Nov 20th, 2006, 15:16
Junior Member
Join Date: Jul 2006
Location: UK
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a Web Survey

To connect to a mysql DB is easy :S

Code: Select all
$username = "user";
$password= "pass";
$host = "localhost";
$db = "dbname";

mysql_connect ($host, $username, $password) or die ("MySQL database could not connect");

mysql_select_db ($db) or die ("Database could not be selected");
Which would be store din a file named connect.php, in all your pages that you need it you just do include('connect.php');
Reply With Quote
Reply

Tags
web survey

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Usability Survey for site!!!!!!! nbolton00 Webforumz Cafe 0 Jan 30th, 2008 17:31
Female/Male Survey alexgeek Webforumz Cafe 13 Oct 16th, 2007 17:08
ASP Survey - Skipping Questions mitcho Classic ASP 5 Aug 10th, 2006 11:31
eservices.mu/survey/survey.aspx vincent Free Web Site Critique 10 Jul 12th, 2006 10:45
php online survey - coding help gribble PHP Forum 1 Jun 18th, 2006 23:12


All times are GMT. The time now is 21:24.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43