public static function getDepositImg($pid, $x, $y) { $deposit = mysql_query("SELECT * FROM " . $GLOBALS['DB_table_prefix'] . "grids WHERE planet_uid = '{$pid}' AND planX = '{$x}' AND planY = '{$y}'"); if (mysql_num_rows($deposit) == 1) { return \planets::getMatImg(mysql_result($deposit, 0, 'mat_type')); } else { return ''; } }