Are there any errors with this?

When I run this page, I have no errors until it comes to this if statement. Is there anything wrong in my coding, besides it being a little sloppy?

I 3 if/else statements in the same file. They are:

if($_GET[‘a’] == ‘email’) {}
if($_GET[‘a’] == ‘recover’) {}
if($_GET[‘a’] == ‘reset’) {}

All the other ones work, except for when I try to execute the reset page.

if ($_GET['a'] == 'reset') {

				$id = $_POST['id'];
				$verification = $_POST['verification'];
				$newpassword = md5($_POST['newpassword']);
				$newpasswordagain = md5($_POST['newpasswordagain']);

				dbconnect();

				$sql = "SELECT * FROM users WHERE id = '$id' AND verification = '$verification'";
				$result = mysql_query($sql);
				$count = mysql_num_rows($result);



				if ($count == 0) {
					echo 'Error 1';
				} else {
					if ($newpassword != $newpasswordagain) {
						echo 'Sorry, your passwords did not match.';
					} else {
						$sql = "UPDATE users SET password = '$newpassword' WHERE id = '$id'";
						$result = mysql_query($sql);

						if (!$result) {
							echo 'Error 2';
						} else {
							echo 'Thank you, your password has been changed!';
						}
					}
				}

				mysql_close();

			}

What are the errors in question?

When I call the link:

http://localhost:8888/mysite/forgotpassword.php?a=reset?id=13&verification=29a1df4646cb3417c19994a59a3e022a

Nothing happens, at all. It jumps directly to the ELSE statement.

Nevermind. I found the error.

Instead of using “&” between reset and id, I had a “?” there. Took me long enough to find that one.