View Single Post
Old 08-16-2009, 06:52 PM  
Sex9
Confirmed User
 
Join Date: May 2007
Location: Los Angeles
Posts: 155
Here is a tibit a code I used on one of my games
$x = 1000;
$y = 950;
$result = mysql_query ("SELECT * FROM $table WHERE x > '$x' && y > '$y' ORDER BY id DESC");
$nRows = mysql_num_rows($result);

for ($i=0; $i< $nRows; $i++){
$row = mysql_fetch_array($result);
$theid = $row['id'];
$query124 = "DELETE FROM $table WHERE id= '$theid'";
mysql_query($query124) or die;
}
I am self taught and make no guarantees, but that worked for me
__________________
The coolest Porn Tube

Last edited by Sex9; 08-16-2009 at 06:54 PM..
Sex9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote