No, that didnt work, everything seems to be setup ok, but when i go back an query the db nothing has changed at all.
Here is the full php script, i feel that it should be working but nothing seems to happen.
<?
$username="<username>";
$password="<password>";
$database="<database>";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="DELETE FROM <table1>WHERE <table1>.userid != <table2>.userid";
$result=mysql_query($query);
mysql_close();
?>
Here an example of what im trying to reference.
<table1>
userid
102441019
102441119
102441219
102441319
102441719
<table2>
userid
102441019
102441019
102441319
102441319
102441119
<Table1> being an index of all registered users, and table 2 being a log that records every time a user does a specific action.
So all userid entries that are in <table1> are in <table2>, but not all user participated so not all userids are present in <table2>, and some people participated more than once there may be some duplicate entries in <table2>.