Bok
10-25-2004, 10:11 AM
Got a question for any php developers out there.
In my new version of the stats I'm doing the front end entirely in php. However I'm having problems displaying teams which have spaces in them.
I'm sure I've had this working before but can't quite seem to get it to work now.
i.e. in my DB I have stored team=Dutch Power Cows
my php script reads this for Free-DC
http://stats.free-dc.org/new/teamstats.php?proj=tsc&team=Free-DC
but how to I put in Dutch Power Cows into that URL and then have the script decode it ?
I've messed about putting in %20's, +'s and also using urldecode etc, but without success. I'm sure it's something obvious I'm overlooking but would appreciate any insight!
Bok :cheers:
In my new version of the stats I'm doing the front end entirely in php. However I'm having problems displaying teams which have spaces in them.
I'm sure I've had this working before but can't quite seem to get it to work now.
i.e. in my DB I have stored team=Dutch Power Cows
my php script reads this for Free-DC
http://stats.free-dc.org/new/teamstats.php?proj=tsc&team=Free-DC
but how to I put in Dutch Power Cows into that URL and then have the script decode it ?
I've messed about putting in %20's, +'s and also using urldecode etc, but without success. I'm sure it's something obvious I'm overlooking but would appreciate any insight!
Bok :cheers: