Grading sheet: Part 1: Modification of Existing Script (25 points) +---------------------------------------------------+----------+ | Column added to display item numbers starting w/1 | /5 | | Limit number of records displayed w/$_GET data | /6 | | Alternate background colors of the rows | /6 | | Sort records by mylibrary field PUB_YR | /3 | +---------------------------------------------------+----------+ | Total: | /20 | +---------------------------------------------------+----------+ Part 2: Debug Existing Code or Write New Code (25 points) Option 1: Debugging Exercise +---------------------------------------------------+----------+ | Line 18: $GET['find'] should be $_GET['find'] | /4 | | Line 29: mysql_querey misspelled | /4 | | Line 40: if($count=0) should be if($count==0) | /4 | | Line 51: foreach loop has -> instead of => | /4 | | Line 52: $ missing from $value when printing table| /4 | | Other non-criticle errors: | | +---------------------------------------------------+----------+ | Total: | /20 | +---------------------------------------------------+----------+ Option 2: Coding Exercise +---------------------------------------------------+----------+ | Correct format of PHP script | /2 | | $_POST data retrieved correctly | /2 | | $_POST data trimmed properly from left and right | /3 | | Displayed trimmed text | /2 | | Multiple spaces removed from $_POST data | /3 | | Computed length of string properly | /2 | | Counted number of words properly | /3 | | Counted number of sentences properly | /3 | +---------------------------------------------------+----------+ | Total: | /20 | +---------------------------------------------------+----------+