Solved

Raffle website

Posted on 2010-08-12
1
339 Views
Last Modified: 2013-12-13
I am starting to put together a website which is a house raffle site.

Users by tickets at £500 with good odds at winning a house.

I'm struggling to find an 'off the shelf' system that supports this, a kind of shopping cart specific to a lottery/raffle website. Does anyone know of any software that offers this?

It needs the following functions:

•  Users can buy a one-off ticket or buy a tickets over time (5 payments of £500 for example).
•  A kind of stock control so only a certain amount of tickets are bought
•  A function allowing the client to login and check their account.

I'm ok with MySQL and PHP and have considered building this myself, would this be difficult?
0
Comment
Question by:BrighteyesDesign
1 Comment
 
LVL 20

Accepted Solution

by:
Mark Brady earned 500 total points
ID: 33425494
This would be very basic especially if you knew both PHP and MYSQL.  Making a login system is easy. There are millions of tutorials out there but I'm sure you have read many yourself.

Here are some questions for you before we begin (so I can get a feel of what level you are at)

1: Are you comfortable making a login page ?
2: Can you write MYSQL tables and insert and retrieve data via PHP script ?
3: Can you do some basic graphic (Photoshop) work to create the login page ?

If you can do all 3 of the above then this is how I would attack it.

Create the login page. Create a 'stock' table and populate it with the number of tickets to be sold.
On the purchase page, as the user clicks the button to buy a ticket, have the forms script go to the database and perform the following tasks:

1: Add the ticket and ticket number if you want to have one to the customers purchase table and include things like the date and time the ticket was purchased etc...
2: Reduce the stock amount of tickets by 1

Whatever other functions you deem necessary but I think on the whole this would be a one days effort kind of thing. It really wouldn't be difficult at all. Have a go at it and if you get stuck just ask in here and we will help you.

I ALWAYS start any project off by writing down everything I want the site to do. Every feature I need it to have and the aim of every button click (where is each page going and to do what?).

Once you have your list you can chip away at the project page by page. Always start with the login script as that is the very first thing the user will need to do to get into their account. Give them each a unique identifier when they signup by using a combination of a random number (8 - 10 numbers long) and a few letters of their username.

I would also do things like create a user feedback form so they can send you email, create an admin section so you can login and do certain tasks. You could create the 'Buy Now' buttons in paypal or you can use your own merchant account if you have one but paypal is simple and quick. That's pretty muck all I can offer right now but let me know if you don't follow my line of thinking.

I created a trading site with similar features a couple of years ago so if you want you can go checkout www.junktraders.co.nz

Cheers
Elvin
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question