Okay so we just figured out my last problem but one of my other databases isn't layed out the same way. I understand that mysql does between references on dates but can it do it on a tile based location?
Such as:
$xtop = $char['posx'] + $char['foresight'];
$xbottom = $char['posx'] - $char['foresight'];
$ytop = $char['posy'] + $char['foresight'];
$ybottom = $char['posy'] - $char['foresight'];
$findOre = mysql_query("SELECT * FROM ore WHERE location BETWEEN '".$xbottom.", ".$ybottom."' AND '".$xtop.", ".$ytop."'");
Not sure if this is even possible. Haven't given it a try yet. So would this work or am I screwed and have to write out a long array?