[eluser]james182[/eluser]
how would you go about changing this to a codeIgniter styled controller function?
Code:
function get_nav($current_parent_id, $current_child_id){
$nav = '';
$sql = "SELECT * FROM tbl_nav WHERE nav_parent_id = 0 ORDER BY nav_order ASC";
$result = mysql_query($sql) or die (mysql_error());