Fee for a job.
Moderator: General Moderators
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
Fee for a job.
Here is the job. Make a page to accept registrations, perhaps one per person tha tis then stored in a database. Then after a certian time have a script randomly select someone from the database and pick a "winner" then e-mail that winner to a certian person in the company. Also only let that script be run once. When they register collect about ten fields of information including address, name, number, age, sex, birthday, the like...
I've been programming for about 1.5 years, all PHP, MySQL experience.
Thanks for the feedback.
I've been programming for about 1.5 years, all PHP, MySQL experience.
Thanks for the feedback.
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
I'm fairly good. I'm not arrogant and say I can do everything but I've got to where I can do most things without referring to amillion different web sitse.
Procedural programming, and I even plan on putting all the code on two pages. (It's a small enough project I don't see much of a point in making a billion seperate pages) I comment well enough that someone that is of at least moderate skill could follow what is going on. And I don't see why it should need maintaning. I plan on testing good enough before releasing to them that it shouldn't need fixing, or so I'm thinking:-D And I plan on finishing it tonight.
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
I don't see why you would need a user to "click" or "activate" the pick-a-winner script as this seems a task that is can (and should) be automated.. simply install the task in your crontab.. And you don't have to depend on an employee to actually pick a winner 
Basically:
- 1 page with a form (store posted data in a database)
- 1 script to pick a random winner
- 1 install pick-winner in crontab so it runs at requested times
This should be doable in under an hour.. If you want a bit of testing (perhaps write a couple of simpletest webtestcases) make that 2 hours..
Basically:
- 1 page with a form (store posted data in a database)
- 1 script to pick a random winner
- 1 install pick-winner in crontab so it runs at requested times
This should be doable in under an hour.. If you want a bit of testing (perhaps write a couple of simpletest webtestcases) make that 2 hours..
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
um. care to PM me some links on how the devil to do a crontab?:-D and i'm also aware this can be done in two hours tops (specially since I'm watching T.V.
) but I also recognize this companys supposed web development team has no idea how to do this...
I'm even pondering letting them run the script straight from my site, I get the impression their site doesn't have MySQL or any other database system installed and that would cause some difficulty.
Nay, search this forum or perform a websearch and you will find a load of links..um. care to PM me some links on how the devil to do a crontab?
In that case you may wonder why they need the user information, or how they are going to use it.. Because it seems pretty stupid to ask a user for data if you are not going to use that databut I also recognize this companys supposed web development team has no idea how to do this... Very Happy I'm even pondering letting them run the script straight from my site, I get the impression their site doesn't have MySQL or any other database system installed and that would cause some difficulty.
Anyway, i prefer to ask 2 * $50 instead of 10 * $10 but that's your own choice.
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
In that case the following script should be sufficient 
Code: Select all
<?php
mail('timvw@users.sourceforge.net', 'Congratulations you are the winner of our Go-Kart', '....');
?>