Arrow

A couple of minor bugs | Peter's Sports League Standings | Forum

Back to the sports standings script page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

A couple of minor bugs

Reply to Post Add a New Topic
UserPost

10:58 pm
June 8, 2009


Murray

Guest

I get the following 2 errors on the latest version….This is a new install.

Notice: Undefined index: sort in C:\\wamp\\www\\sport\\standings\\standings.php on line 145.

In the

standings/update.php?action=editscore

The field box shows

instead of the name of the field played on. The field has been loaded into the database as it is displayed in standings.php

As you can see I am running the program on localhost using the latest wamp load on Win XP SP3

regards

Murray

addition info…If I select a column header to sort on that field.. all is well. I suspect a default sort needs to be specified.

2:47 am
June 9, 2009


Peter

Admin

posts 732

Hi,

My install doesn’t complain about that but I probably have a more lax PHP setup. So thanks for pointing these things out!

The first issue can be resolved by replacing line 145 with:

if (isset($_GET['sort'])) {
$standings_sort = intval($_GET['sort']);
}
else {
$standings_sort = 0;
}

The other issue can be solved by making the value of the input box on line 197 of admin_files/editscore.php to be:

<?php print $field;?>

Instead of what it was before (not sure how that got through):

<?print $field;?>

3:25 am
June 9, 2009


Murray

Guest

Thanks Peter,
I had worked out the second problem. Both are fine now.

Quick work

Reply to Post

Reply to Topic:
A couple of minor bugs

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 8