<?php require_once '../common/config/config.inc.php'; require_once $arrConfig['sourceRoot'] . 'classes/class.adminlogin.php'; //**** check user name for login form if ($_GET['type'] == 'signUp' && $_GET['userEmail'] != '') { $objLogin = new AdminLogin(); $varAdminWhere = " AND AdminUserName='******'userEmail'] . "'"; $varAdminRec = $objLogin->getAdminNumRows($varAdminWhere); if ($varAdminRec > 0) { $varString = true; } else { $varString = false; } echo $varString; //echo result return type boolean } //**************end here ************************* //**************getting record for product on the bases of category ****************// if ($_GET['categoryID'] != '') { $arrProductCol = array('ProductName', 'pkProductID'); $varWhereProduct = 'fkCategoryID=\'' . $_GET['categoryID'] . '\' GROUP BY pkProductID'; $arrProductList = $objGeneral->getRecord(TABLE_PRODUCTS, $arrProductCol, $varWhereProduct); if (is_array($arrProductList)) { $varString = '<select name="frmProductID" id="frmProductID" style="width:200px;"><option value="">--Select Product--</option>'; foreach ($arrProductList as $varProductKey => $varProductVal) { $varString .= '<option value="' . $varProductVal['pkProductID'] . '">' . $varProductVal['ProductName'] . '</option>'; } echo $varString .= '</select>'; } }