Jump to content
MakeWebGames

Markets!


chaoswar4u

Recommended Posts

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);
		}
Link to comment
Share on other sites

  • 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...