I am kinda new to these Between clauses, never had to use one before.
Anyway, I feel like I am not approaching this quite right. I feel like the separating "AND" between posx and posy is a little too much and could be the reason the code is not displaying the way I am looking for. Any ideas/tips/guides?
$xtop = $char['posx'] + $char['foresight'];
$xbottom = $char['posx'] - $char['foresight'];
$ytop = $char['posy'] + $char['foresight'];
$ybottom = $char['posy'] - $char['foresight'];
$grabBag = mysql_query("SELECT * FROM bagdrop WHERE (`posx` BETWEEN '".$xtop."' AND '".$xbottom."') AND (`posy` BETWEEN '".$ytop."' AND '".$ybottom."')");