public static function getDepositTextLong($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) { $result = mysql_result($deposit, 0, 'mat_quant'); $result .= " unit(s) of "; $result .= \planets::getMatName(mysql_result($deposit, 0, 'mat_type')); $result .= " discovered by "; $result .= stripslashes(mysql_result($deposit, 0, 'prospector')); $result .= "."; return $result; } else { return 'No deposit here.'; } }