|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Parsing the USFIRST Champ list
Hey all...
Here is some php code that will parse the usfirst team list for the champ event for you. You can change the echo's to assign the fields to an array which you could insert into your db. If you have any questions, feel free to ask me. PHP Code:
Last edited by Jack : 01-04-2003 at 19:16. |
|
#2
|
||||
|
||||
|
I noticed a bug, when it displayed results with a website, it didn't properly phrase the location of the the team. That can easily be fixed with this version:
PHP Code:
It is really great that you provide teams with these resources. I was totally lost, when it came to doing this, but once I looked at the source for one you did.. it became very easy. Thanks Jack! |
|
#3
|
|||||
|
|||||
|
Hey, thanks for pointing out that error. Your soultion is a bit overcomplacated. I designed the script to be inserted into my MySQL DB. I then changed it so that it could be output to a browser. The real problem was that in forgot the <br /> tag on the end of one of the lines
$var = strip_tags($var); //return the team name echo $var; to echo trim(strip_tags($var)).'<br />'; //return the team name hehe, yeah... thanks again for catching it. (You way's cool too )and as you can see in that fix, you might want to make sure that you run all the $var's though trim() to kill any whitespace as i forgot to do a few times. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| POLL: How do you feel about Nationals being in Atlanta?? | DanLevin247 | Championship Event | 63 | 21-07-2003 19:34 |
| Parsing usfirst Match Data | Jack | Scouting | 0 | 08-03-2003 02:00 |
| Full list of teams & competitions | archiver | 2001 | 14 | 24-06-2002 00:52 |
| Team list & Events | archiver | 2000 | 2 | 23-06-2002 22:39 |
| Suggested list of things to bring to the regionals | Andrew Wyatt | Technical Discussion | 1 | 06-03-2002 14:41 |