function showonecategory($catid) { $dbobj = new Cdb(SERVER, DBNAME, DBUSER, DBPASS); $dbobj->connectDB(); $row = $dbobj->getTablesFromDB("select * from category where CategoryID='" . $catid . "' order by CategoryID asc"); return $row; }
function getUserRecord() { $ObjDb = new Cdb(SERVER, DBNAME, DBUSER, DBPASS); $ObjDb->connectDB(); $Qry = "SELECT BillingFirstName, BillingLastName, UserEmail, BillingTelephone FROM customers where UserID = '" . $_SESSION['USER_ID_GTECH'] . "'"; $result = $ObjDb->getRowFromDB($Qry); return $result; }