For anyone else seeking to solve this issue, set up a PHP file looking something along the lines of this:
PHP Code:
if (isset($_POST))
{
$username = $_GET['username']; // ?username=
$password = $_GET['password']; // &password= [hashed, of course.]
$hardware_token = $_GET['token']; // &token= for hardware login, etc.
$result = mysql_query("SELECT * FROM `accounts` WHERE username='".$username."' AND password='".$password."'");
$row = mysql_fetch_array($result);
if ($row['username'] && $row['password'])
{
echo "AUTH OK";
}
else
{
echo "AUTH BAD";
}
}
This has been covered on my blog at C# login with PHP and MySQL Aevitas' Retreat, too.