Here is the form code
<form method=\"post\" action=\"Baseball/players.php\">
<p>Last Name
<input type=\"text\" name=\"last\">
<br>
First Name
<input type=\"text\" name=\"first\">
<br>
<input type=\"submit\" name=\"Submit\" value=\"Submit\">
<input type=\"reset\" name=\"Submit2\" value=\"Reset\">
Then it goes to this results page
<?php
$db = mysql_connect(\"localhost\", \"login\", \"password\");
mysql_select_db(\"database\",$db);
$result = mysql_query(\"SELECT player_id, first_name, last_name FROM players WHERE last_name LIKE \'$last%\' AND first_name LIKE \'$first%\'\", $db);
echo \"<b>Here are the players that match your entry</b><p>\";
while ($myrow = mysql_fetch_row($result)) {
printf(\"<a href=\'Baseball/dbtest.php3?player_id=%s&fname=%s&lname=%s\'>%s %s</a><br>\", $myrow[0], $myrow[1], $myrow[2], $myrow[1], $myrow[2]);
}
mysql_close($db);
?>
I turned the error handling down a little and it got rid of the error, but it still gave me results of all records in the table that I am querying.
The same file with no modifications works on my hosts server. It then gives me this problem on the test server on my computer that I am trying to get working.
Sean