What if I want to add a second parameter to my query? I understand the % but I want the both the $th and $sport vars (below) to be an exact match, not a "like"...
This works for one parameter, but needs to be modified to be EXACT EQUALS, not LIKE:
$sql="SELECT * FROM schedules WHERE team LIKE '%".$tm."%' ORDER BY date";
This is not working for two, how do I add the second parameter (they are both being passed in a URL string:
$sql="SELECT * FROM schedules WHERE team LIKE '%".$tm."%' AND sport='%".$sport."%'ORDER BY date";