473,399 Members | 3,038 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,399 software developers and data experts.

Noob query: Voting or Poll Scripts

Hello All:

I am new to Php, but working my way out slowly. I saw some polling or
voting scripts on the net and all of them use MySQL database with it. I
was wondering if a file can be used (to save use of a database, I have
only 10-databases from godaddy and I cannot use one for each poll).

It seems that this can be done (using file instead of a DB), but I don't
want to re-invent the wheel. So if someone has a suggestion, please help
me out.

Best regards,
Animesh
Feb 14 '07 #1
3 1674
Message-ID: <eq**********@agate.berkeley.edufrom Animesh K contained
the following:
>I am new to Php, but working my way out slowly. I saw some polling or
voting scripts on the net and all of them use MySQL database with it. I
was wondering if a file can be used (to save use of a database, I have
only 10-databases from godaddy and I cannot use one for each poll).
I wrote a poll which enabled you to have as many polls as you like using
just two tables. I suspect others will be similar. Also you can have
many tables in a database (I usually just use a naming convention to
keep them separate.)

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Feb 14 '07 #2

Animesh K wrote:

Hello All:
I am new to Php, but working my way out slowly. I saw some polling or
voting scripts on the net and all of them use MySQL database with it. I
was wondering if a file can be used (to save use of a database, I have
only 10-databases from godaddy and I cannot use one for each poll).
It seems that this can be done (using file instead of a DB), but I
don't
want to re-invent the wheel. So if someone has a suggestion, please
help
me out.
Best regards,
Animesh
10 databases is not really a problem here. You can identify tables that
belong to a single script inside a single database using a unique name
prefix. This is how it has been done years ago when a single MySQL
database that your host allowed was look upon as a huge favor.

In any case, if you are trying to avoid using a database, you will need
your script to be able to write onto the hard drive and that creates
possibility for NASTY website hacks. I would avoid a script that
unnecessarily writes anything to a disk. Don't shy away from database use.
There are plenty of benefits there.

As for where to get a ready-to-go script, www.hotscripts.com has plenty.

--
Cheers,
Dmitri
See Site Sig Below
--
+------------------------------------------------+
| Follow comp.lang.php threads |
| with your Firefox Live Bookmarks! Set it up at |
| http://www.1-script.com/forums/ |
+------------------------------------------------+

Feb 14 '07 #3
www.1-script.com wrote:
Animesh K wrote:

>Hello All:
>I am new to Php, but working my way out slowly. I saw some polling or
voting scripts on the net and all of them use MySQL database with it. I
>was wondering if a file can be used (to save use of a database, I have
only 10-databases from godaddy and I cannot use one for each poll).
>It seems that this can be done (using file instead of a DB), but I
don't
want to re-invent the wheel. So if someone has a suggestion, please
help
me out.
>Best regards,
Animesh

10 databases is not really a problem here. You can identify tables that
belong to a single script inside a single database using a unique name
prefix. This is how it has been done years ago when a single MySQL
database that your host allowed was look upon as a huge favor.

In any case, if you are trying to avoid using a database, you will need
your script to be able to write onto the hard drive and that creates
possibility for NASTY website hacks. I would avoid a script that
unnecessarily writes anything to a disk. Don't shy away from database use.
There are plenty of benefits there.

As for where to get a ready-to-go script, www.hotscripts.com has plenty.
Thanks for the quick reply. I will adhere to your and Geoff's suggestions.

Best regards,
Animesh
Feb 14 '07 #4

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

Similar topics

0
by: Michael | last post by:
Hi, I am looking for a poll script with a special feature. Normally poll scripts display for every answer option ONE bar according to how many votes the answer got. I am looking for a script...
10
by: windandwaves | last post by:
Hi Folk I am developing a voting / polling system. Eg. Who is your favourite sport star: a. mike b. sara c. frank
5
by: george | last post by:
Hi All I've used couple of GPL/free voting scripts (some of these are very good), but need to create/find one that allows users to add a new answer. For example: This is a voting question -...
3
by: bungle bonce | last post by:
I have used the usual method of calculating age from DOB and placed it on a form, I now need to use this in a query, or place the data in a table so I can then query it. I am a noob so be gentle...
10
by: Marek Zawadzki | last post by:
Hi all. Is it possible to implement an accurate voting mechanism (think digg.com) that does not require users to sign in before voting? I think for many people registering is pain and thus...
1
by: Japskunk | last post by:
I am having trouble updating a SQL table through the GridView "Auto" Enable Edit Feature... I am connecting to a SQL 2000 Server with a SQLDataSource I have created the Update Query in the Command...
0
by: Mirce | last post by:
I have installed a phpBB2 forum at next URL: http://www.hcu.untz.ba This site is dedicated to handicapped persons. I have posted a poll at this site. The results of voting on poll questions are...
3
by: aalmakto | last post by:
Hi folks, Just wondering if there are any php polling scripts that can be used for this type of situation. My site allows people to set up their own Website with no coding whatsoever. I need a...
1
by: christam1 | last post by:
Hi there, I'm creating a PHP/XML-based voting system. There are 24 options for a user to vote from, and ideally I'd like the user to see a picture of each person they vote for. So far, I've managed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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
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...

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.