473,748 Members | 4,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP Code - Tracking football squares (10x10 matrix)

Okay,
Superbowl is only a few days away, but I thought it would be cool to
set up an online registration for a football squares pool.

My thoughts are to have people go into anywhere on the 10x10 matrix
and put their name in.
If someone already has put their name in a square, then the text input
box is now static (i.e. cant be overwritten)...

Only problem - I'm not sure how to do this. I'd plan on using an
access database with ASP...but was wondering if anyone has quick
thoughts (or maybe actual working code)...on how to do this???

Would the database be best served with 100 rows of data (1 for each
square), or 1 row with 100 columns of data...??? thoughts?
Thanks!
Go Pats...
Jul 19 '05 #1
6 3668
I named my dog Bunger so when I say your name I had to reply!!

I would never make a 100 columns in your table for this kind of app. If
the position matters just record a value from 1 to 100 for each person.
As you output the columns/rows just use box 1 as the upper left and 10
is upper right. Box 11 would just be the start of the 2nd row and
continue this pattern using a loop.

Access and ASP would be ok for this one. You would simply record the
name and position. 2 columns of data. Very simple.

I do admit I don't even know what a football squares pool is so maybe
there is more to this app than I know :)

Shawn Jackson
Owner and Creator
http://www.actionjackson.com
http://www.devdex.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #2
ActionJackson <ac****@actionj ackson.com> wrote in message news:<O6******* *******@TK2MSFT NGP09.phx.gbl>. ..
I named my dog Bunger so when I say your name I had to reply!!

I would never make a 100 columns in your table for this kind of app. If
the position matters just record a value from 1 to 100 for each person.
As you output the columns/rows just use box 1 as the upper left and 10
is upper right. Box 11 would just be the start of the 2nd row and
continue this pattern using a loop.

Access and ASP would be ok for this one. You would simply record the
name and position. 2 columns of data. Very simple.

I do admit I don't even know what a football squares pool is so maybe
there is more to this app than I know :)

Shawn Jackson
Owner and Creator
http://www.actionjackson.com
http://www.devdex.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


....some people do call me Bunger for run...
as for a football square pool : think of this:
Start with a 10 x 10 matrix. Have people fill their names in all of
the 100 cells. Then, randomly place the numbers 0 thru 9 across the
horizontal access, then do the same down the vertical axis.
For the football pool, the horizontal axis represents team 1, and the
horizontal axis represents team 2. At the end of each quarter played,
you would look at the "ones digit" for each team, and find out where
this numeric combination meets in the squares. I.e. if team 1 had 17
points, and team 2 had 14 points, you would find the intersection of
team 1(7) and team 2(4) and whoevers name was there would win $$ for
that quarter...

Therefore, I was looking for a routine where people could visually see
a 10X10 matrix on the screen, each cell with an input box to put their
name it. As soon as someone would select a square (and input it),
that cell becomes 'fixed', and only the un-selected squares remaining
are available for text input...

Hope that makes sense...any further ideas???
Thanks,
bUnger...
Jul 19 '05 #3
"binger" wrote:
: ActionJackson wrote:
: > I would never make a 100 columns in your table for this kind of app. If
: > the position matters just record a value from 1 to 100 for each person.
: > As you output the columns/rows just use box 1 as the upper left and 10
: > is upper right. Box 11 would just be the start of the 2nd row and
: > continue this pattern using a loop.
: >
: > Access and ASP would be ok for this one. You would simply record the
: > name and position. 2 columns of data. Very simple.
:
: Therefore, I was looking for a routine where people could visually see
: a 10X10 matrix on the screen, each cell with an input box to put their
: name it. As soon as someone would select a square (and input it),
: that cell becomes 'fixed', and only the un-selected squares remaining
: are available for text input...

http://www.partysoftware.com/Football_Squares.html
Jul 19 '05 #4
"binger" <ma************ *****@yahoo.com > wrote in message
news:69******** *************** ***@posting.goo gle.com...
Okay,
Superbowl is only a few days away, but I thought it would be cool to
set up an online registration for a football squares pool.

My thoughts are to have people go into anywhere on the 10x10 matrix
and put their name in.
If someone already has put their name in a square, then the text input
box is now static (i.e. cant be overwritten)...

Only problem - I'm not sure how to do this. I'd plan on using an
access database with ASP...but was wondering if anyone has quick
thoughts (or maybe actual working code)...on how to do this???

Would the database be best served with 100 rows of data (1 for each
square), or 1 row with 100 columns of data...??? thoughts?
Thanks!
Go Pats...


As this is just a small application with very little need for expandability,
the FASTEST way to do it might be to start by creating your grid as static
HTML. That is, create an HTML table (enclosed in a form), which has 11 rows
and 11 columns (don't forget, you need an extra row to hold the numbers
along the top of the grid, and an extra column to hold the numbers along the
left side of the grid). Your database should contain 100 rows of data
because you will need an ID column (which will be used to to identify the
items in the form) and a text column to store the name (which should be
empty to begin with). Your page should get all of the records from the
database into a recordset (ordered by the ID field). This example assumes
your ID field is numbered sequentially from 1 to 100 (that's important).
Then, for each table cell, you will write your input. If the length of the
name field for the corresponding record in the database is greater than
zero, make the field readonly. For example:

<td><%
Response.Write "<input name=""square" & RS("ID") & """ type=""text""
maxlength=""50" " size=""12"" value=""" & RS("PersonName" ) & """"
If Len(RS("PersonN ame")) > 0 Then
Response.Write " readonly"
End If
Response.Write ">"
RS.MoveNext()
%></td>

After the grid, include a submit button to post the form to a 2nd page for
processing and updating the database, and then redirect back to the original
grid page when done. If there will only be 1 computer accessing this page,
then you don't need to do any "validation ", but if multiple computers may be
used to access and update this grid, then you'll need to check that the name
value is still empty in the database before updating (otherwise, Tom and
Dick might both load the grid at the same time and both enter values into a
field... Tom submits and he sees his value is added to the grid... then Dick
submits and overwrites Tom's entry... smells like foul play).

This is a quick and dirty approach, but I hope this helps get you going in
the right direction. :)
Regards,
Peter Foti
Jul 19 '05 #5
On 27 Jan 2004 19:10:48 -0800, ma************* ****@yahoo.com (binger)
wrote:
Superbowl is only a few days away, but I thought it would be cool to
set up an online registration for a football squares pool.
Assuming you're doing this in the Bahamas of course... :)
My thoughts are to have people go into anywhere on the 10x10 matrix
and put their name in.
If someone already has put their name in a square, then the text input
box is now static (i.e. cant be overwritten)...
Better, just print the names and empty squares get a "Click here to
select this square" link.
Only problem - I'm not sure how to do this. I'd plan on using an
access database with ASP...but was wondering if anyone has quick
thoughts (or maybe actual working code)...on how to do this???
Did you Google for any? The code really wouldn't be hard, but you'll
have to learn quick.
Would the database be best served with 100 rows of data (1 for each
square), or 1 row with 100 columns of data...??? thoughts?


Always less columns than rows. Especially since you could have as
little as a single column for this.

Jeff
Jul 19 '05 #6
Peter - awesome help...i took what you sent and this rocked!!!!!
thanks again for the recommendations ...

.....go patriots...
2004 FOOTBALL SQUARES POOL&nbsp; <BR>
<font color="#FF0000" >
PATRIOTS SCORE ACROSS THE TOP<BR>
</font><font color="#0000FF" >
PANTHERS SCORE DOWN THE SIDE</font>
<p align="center"> $50 FOR 2 SQUARES !!!!
</p>
<ul>
<li>
<p align="left">OF FICIAL NUMBERS WILL BE DRAWN PRIOR TO KICKOFF
THIS SUNDAY</li>
<li>
<p align="left">ON CE YOU SUBMIT YOUR SQUARE - YOU CAN NOT UNDO
YOUR
SELECTION - SO BE SURE OF YOUR PICKS...</li>
<li>
<p align="left">PA TRIOTS WILL KICK ASS</li>
</ul>
<form method="POST" action="update. asp" >
<div align="center">
<center>
<table border="1" height="400" width="400">
<%
do while Not rs.eof
response.write( "<tr>")
for i = 1 to 10
response.write( "<td>")
Response.Write "<input name=""square" & RS("ID") & """ type=""text""
maxlength=""50" " size=""7"" value=""" & RS("name") & """"
If Len(RS("name")) > 0 Then
Response.Write " readonly"
End If
Response.Write ">"
RS.MoveNext()
response.write( "<td>")
next
response.write( "</tr>")
rownumber=rownu mber+1
loop

%>

</table>

</center>
</div>
<p align="center"> <input type="submit" value="Submit"
name="B1"><inpu t type="reset" value="Reset" name="B2"></p>
</form>
<p align="center">
<img height="94" alt="Patriots.c om Home" src="brown800_h ome.jpg"
width="152" border="0">&nbs p;
VS.&nbsp;<img border="0" src="header-sp.gif">
<p align="center"> <a href="http://www.patriots.co m/SuperBowl/XXXVIII/"
target="_top">< img height="250" src="img93_0008 27.jpg" width="250"
border="0"></a></p>

</body>

</html>
Jul 19 '05 #7

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

Similar topics

0
1085
by: BrainKr | last post by:
Still have 4 openings in our CBS SportsLine.com Fantasy Football league. Champ wins $200 prize. If interested, go to: http://football.sportsline.com/splash/football Register for the GOLD Fantasy Football, then search for and join the "Rocky Mountain PigSkinners" league. Automated draft is on September 5th. Plenty of time for the druggies to
7
1333
by: ethanmys | last post by:
hello everyone. hours ago i found a topic about solving the problem: find out 2 int between certain rang, say 1---100, both the 2 int's sum and minus should be a int's square. i write this piece of code and i want you to give some advice. can the code run quicker? i think there must exist many quicker ones. /* this doucument and source code belong to Ethan Mys, oct 30, 2005. any modification to improve the source code is welcome. you can...
2
1689
by: Roman | last post by:
Hello, I am looking for the source of the Tic Tak Toe game but 10x10 and only 5 fields are needed to win. Roman
14
2729
by: MKoool | last post by:
I have an application with one function called "compute", which given a filename, goes through that file and performs various statistical analyses. It uses arrays extensively and loops alot. it prints the results of it's statistical significance tests to standard out. Since the compute function returns and I think no variables of global scope are being used, I would think that when it does, all memory returns back to the operating...
6
2262
by: cefrancke | last post by:
I've read up on Access and the limits of creating visible controls at run-time. I'm using Access 2003 and assume that it cant be done. I did find a clever method of having a main form (and in it's code) open up a subform in design mode (hidden maybe) and then using the CreateControl method, create controls. Save the subform and set a subform control on the main form to point to the subform (really a form) I just edited/designed.
21
2932
by: BWIGLEY | last post by:
Basically I've just started making a game. So far it makes an array 25 by 20 and tries to make five rooms within it. In scr_make_room() there's parse errors: 20 C:\c\Rooms\Untitled1.c parse error before "top_x" 28 C:\c\Rooms\Untitled1.c parse error before "first_square_x" 35 C:\c\Rooms\Untitled1.c parse error before '}' token Why are these happening? int room_square, selected = 1, squares = 1, first_square_x
8
2339
by: mohammaditraders | last post by:
#include <iostream.h> #include <stdlib.h> #include <conio.h> #include <string.h> class Matrix { private : int numRows, numCols ; int elements ;
2
3131
by: steve.falzon | last post by:
Hi Folks The new footy season is almost with us, in England anyway :) I've just created a public league on the Times **FREE** fantasy football league game so if anyone wants to join up please do. My league is called Red Dwarf Crew and it's public so no password needed.
4
5227
by: Evelien | last post by:
Dear python-users, I am trying to do a non-linear least squares fitting. Maybe trying is not the best word, as I already succeeded in that. At the moment I am using leastSquaresFit from Scientific Python. I know of other least squares routines, such as the one in scipy.optimize and I believe there is also one in numpy. Now here is my question: in my search for a good algorithm, I was not able to find any non-linear least squares fitting...
0
8984
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.