Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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);
		}
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...