Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/lib/com/sergids/topmusic/model/GenericAdminDAO.php
<?php

class GenericAdminDAO{
	var $db;
	var $prefix;
	function GenericAdminDAO($db,$prefix="nuke"){
		$this->db=$db;
		$this->prefix=$prefix;
	} 
	function getLanguageList(){
		$sql="SELECT DISTINCT (language) FROM ".$this->prefix."_topmusic_genre_lang order by language";
		//echo "sql1=".$sql."<br>";
		$stmt=$this->db->sql_query($sql);
		while($rs=$this->db->sql_fetchrow($stmt)){
			$langList[]=array(0=>$rs['language'],1=>$rs['language']);
		}
		$this->db->sql_freeresult($stmt);
		return $langList;
	}
}
?>
Return current item: Top Music module