(2003-2009) * @author Froxlor team (2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * */ function getCustomerDetail($customerid, $varname) { $customer_stmt = Database::prepare(" SELECT `" . $varname . "` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid` = :customerid "); $customer = Database::pexecute_first($customer_stmt, array('customerid' => $customerid)); if (isset($customer[$varname])) { return $customer[$varname]; } else { return false; } }