Re: [mccode] Mining mod
This should work...
$blah=mysql_num_rows(mysql_query("select * from inventory where inv_itemid='69' ",$c));
if($blah)
{
echo "[b] {$ir ['username'] } You pick up your pick and wonder what you will find today.[/b]";
}
else if(!$blah)
{
echo "[b] {$ir ['username'] } You can't mine here, sorry.[/b]";
$h->endpage();
exit;
}
I don't actually work with v1 so some of this may not work if not i'm sure someone will correct it.