Ok so I was curious how I could fix this little scripting problem. Whenever I have the pickaxe equipped it still says that i need to equip it. Im not sure if it's because of the "AND" or what....
$ItemQuery="SELECT * from Items where Owner='$Player'";
$ItemQuery2=mysql_query($ItemQuery) or die("Could not get user stats");
$Item=mysql_fetch_array($ItemQuery2);
if($Item['Name']=="Rusted Pickaxe" AND $Item['Equipped']=="yes"){
}else{
echo"You need to equip the Pickaxe first.";
}