Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Some background:

I am working on creating a script that users can utilize for organizing a competition schedule. Each day there are six competitions around the country. Each person has to pick which competitions they will be going to.

I have created a database that holds the competition data. Here is a screenie from a portion of it:
[]http://www.drumlines.org/upload/schedule.gif[/]

The form I am creating for members, so far, looks like this:
[]http://www.drumlines.org/upload/form.gif[/]

Each day's dropdown lists those six competition locations from that day, as well as the default "None" which you saw in the screenshot. Here is a snippet of the code I am using to create this:
[]http://www.drumlines.org/upload/script.gif[/]

As you can see, I am having to repeat the section of code while changing the date and making variations of the $complist variable. I have been struggling to create a loop where I would not have to keep repeating the same section of code. I am still learning PHP, so don't point and laugh too hard.

Any heroes out there?

To show you I really AM trying, I did manage to work out a script that lists all Drum Corps in the database:
http://www.drumlines.org/threads/showcorps.php

Last edited by DLWebmaestro; 05/25/2004 1:33 AM.
Sponsored Links
Entire Thread
Subject Posted By Posted
Using a loop to group DB data by date AKD96 05/25/2004 8:30 AM
Re: Using a loop to group DB data by date AKD96 05/28/2004 4:22 AM
Re: Using a loop to group DB data by date Astaran 05/29/2004 12:36 AM
Re: Using a loop to group DB data by date AKD96 05/29/2004 3:13 AM
Re: Using a loop to group DB data by date AKD96 05/29/2004 3:19 AM
Re: Using a loop to group DB data by date Astaran 05/29/2004 11:18 AM
Re: Using a loop to group DB data by date AKD96 05/30/2004 3:30 AM
Re: Using a loop to group DB data by date AKD96 06/02/2004 10:57 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1731
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)