Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Tables - help plleeaaasssee!
Old 03-07-2005, 07:46 AM Tables - help plleeaaasssee!
Experienced Talker

Posts: 35
Trades: 0
Hi,

I have a reports page and on the reports I have a team line up:

PHP Code:

<input name="shirtone" type="text" size="35" maxlength="128" value="<?php echo $shirtone?>">
                      <select name="shirtone_quickpick" onChange="window.document.reportform.shirtone.value = this.options[this.selectedIndex].value";>
                        <option>Quick pick name...</option>
                        <option value="Allaway"<? if ($shirtone == 'Allaway') echo ' selected' ?>>Allaway 
                        <option value="Parkin"<? if ($shirtone == 'Parkin') echo ' selected' ?>>Parkin 
                        <option value="Whincup"<? if ($shirtone == 'Whincup') echo ' selected' ?>>Whincup 
                      </select>

When I hit submit the data I select from the dropdown either ‘Allaway’, ‘Parkin’ or
‘Whincup’ is then recorded in the $shirtone variable in that record in a ‘reports’ table.

So When I add 5 reports records with different id’s and for example have picked ‘Allaway’ five times I want that information that he has made 5 appearances to appear in a different table called ‘players’ in an input box with the value ‘5’

PHP Code:


<input name="allaway" type="text" id="allaway" value="<?php echo $allaway?>" size="36">

Then when I add another report again in the ‘report’ table and he is picked his appearances goes up to ‘6’ automatically in the ‘players’ table and appears in the above input box.

And so on…

How do I go about doing this – can anyone provide me with a code example.

Thanks

Chris
chrisb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Tables - help plleeaaasssee!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16579 seconds with 12 queries