-$good in s_match, +URL checking, ~numrow checking

Removed $good declaration in s_match to avoid inputing a second instance of a URL.

Added more URL checking.

Improved numrow checking in if statements so that it's `if ($numrows != 0) {` instead of `if ($numrows == 1) {`.