Hi,

it's easily to do something like this in php. As Dark_samurai already mentioned, you have to do an http_post instruction to call a php script.
You may also could use the bigdll from Timo Stark to call HTTP-GET request, I don't know what kind of requests ANet does send, may HTTP-POST request, that would be much better.

The script may could look like this:

add.php:
Code:
<?
mysql_connect("server_adress","user,"pw") or die("error, could not connect to mysql-server");
$search=$_GET["s"]; // get the searched query (if not, try $_POST)
$row_name="row"; // insert the row name, where to search
$table_name="table"; // Insert the table name
$link=mysql_query("SELECT * FROM $table_name WHERE $row_name LIKE '$search'");
if($link && $a=mysql_fetch_object($link)) // found!
echo "1"; // Give out 1, means the string is found
else
{
mysql_query("INSERT INTO $table_name VALUES ...");
echo "0"; // Give out 0, means the string was not found but was insert now
}
?>


btw., deleting looks like this:
Code:
mysql_query("DELETE FROM $table_name WHERE $row_name LIKE '$search'");


Regards
TSGames



Last edited by TSG_Torsten; 05/30/09 14:32.