PHP & MySQL Query

Completed Posted Aug 16, 2011 Paid on delivery
Completed Paid on delivery

I need a form creating that does the following, the form should be on the left hand side of the page and the results appear on the right hand side so there is only 1 page in total. Don’t worry about styling the html.

I have already created the database and filled it with data so I can export and supply you with that.

The main aspect of the work is putting the query together to produce the results.

The query can be run even if all form fields are not filled in and only the team is selected.

The form should look like what is explained below

1. This is selected from the teamdata table

<select name="team">

<option value="Arsenal">Arsenal</option>

<option value="Aston Villa">Aston Villa</option>

<option value="Chelsea">Chelsea</option>

<option value="Everton">Everton</option>

</select>

This is the default option and the user can just submit the form with only a team selected.

So all the extra steps below just bolt further criteria onto the query.

2. The next section allows you to limit the grouping to show results against certain teams which is a multiple select. But doesn’t have to be selected.

<select name="opponents" multiple="multiple">

<option value="Arsenal">Arsenal</option>

<option value="Aston Villa">Aston Villa</option>

<option value="Chelsea">Chelsea</option>

<option value="Everton">Everton</option>

</select>

3. The following section allows the user the option to select multiple seasons, which should match the season field that is in the results-data table.

<select name="season" multiple="multiple">

<option value="2009 - 2010">2009 - 2010</option>

<option value="2010 - 2011">2010 - 2011</option>

<option value="2011 - 2012">2011 - 2012</option>

</select>

4. The next section allows the option to filter the results section by selecting only the games where the team (selected from number 1 section) is the home or away team in the results-data table. The default is that it brings back all results.

Home Matches<input type="checkbox" value="y" name="home-matches">

Away Matches<input type="checkbox" value="y" name="away-matches">

5. The next section allows a user to limit the results page to only show results from teams that match the grouping letter from the team-data table.

<select name="grouping">

<option value="A">A</option>

<option value="B">B</option>

<option value="C">C</option>

<option value="D">D</option>

<option value="E">E</option>

</select>

6. Then there needs to be a section where the user can limit the amount of rows that are returned. The limit should be a text box where the user can type in a number that then limits the results to that amount of rows.

The results should be in a table and each row should have an alternating colour for sample purposes just use red and black.

I have attached a word document which shows what the results page should like as well.

HTML MySQL PHP

Project ID: #1167894

About the project

11 proposals Remote project Active Sep 9, 2011

Awarded to:

shihan033010

Hi please check PMB.

$30 USD in 0 days
(232 Reviews)
6.3

11 freelancers are bidding on average $51 for this job

Sotirov

Hello, please check PMB, Regards

$50 USD in 0 days
(58 Reviews)
6.8
sidfishman

Please see PM, Thanks

$150 USD in 0 days
(79 Reviews)
6.4
beyondprograms

i'm intersted. please check pmb

$80 USD in 1 day
(17 Reviews)
6.2
allroundexperts

Please check PMb

$30 USD in 0 days
(85 Reviews)
5.3
websoft2009

Hello, I could do this task for you. Check PM for more details.

$30 USD in 1 day
(18 Reviews)
4.7
sv3tli0

Hello Already have such work pls check my PM

$40 USD in 0 days
(23 Reviews)
4.3
StefanNET

Check PM please Thanks.

$30 USD in 0 days
(1 Review)
3.6
CodeCreators

Please check you PM. Thank You.

$40 USD in 1 day
(6 Reviews)
3.6
tellmemorei

Please Check PM.

$40 USD in 1 day
(7 Reviews)
2.9
PaypalOnly

Can be done within 12 hours. Ready to start. Please check PM.

$50 USD in 0 days
(0 Reviews)
0.0
ghostprovider

Hi Simon! Allow me to help you. I'm ready to start right away. Thank you.

$30 USD in 1 day
(0 Reviews)
0.0