chaoswar4u Posted June 17, 2007 Posted June 17, 2007 I would like to have my markets return all unsold items to the user everyweek thus to remove mass priced items that stay there forever. Any help on how to do this would be great. Thx in advance. Quote
Draco Posted June 17, 2007 Posted June 17, 2007 Re: Markets! I wrote this little bit to clear out a item market, could be used as a cron also $q=mysql_query("SELECT * FROM itemmarket",$c); while($r=mysql_fetch_array($q)) { mysql_query("INSERT INTO inventory VALUES('',{$r['imITEM']},{$r['imADDER']},1,0)",$c) or die(mysql_error()); mysql_query("DELETE FROM itemmarket WHERE imID={$r['imID']}",$c); } Quote
$$ ?????? $$ Posted July 2, 2007 Posted July 2, 2007 Re: Markets! have you tried it that it works m8 ..?? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.