Ejemplo n.º 1
0
 function ShowPagesRecord()
 {
     $dbobj = new Cdb(SERVER, DBNAME, DBUSER, DBPASS);
     $dbobj->connectDB();
     $row = $dbobj->getTablesFromDB("select * from  contentspagetemplate order by  sortOrder asc");
     return $row;
     $dbobj->disconnectDB();
 }
Ejemplo n.º 2
0
 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;
 }