Subversion Repositories eFlore/Applications.cel

Rev

Rev 416 | Rev 773 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 416 Rev 423
Line 97... Line 97...
97
	        if (DB::isError($res)) {
97
	        if (DB::isError($res)) {
98
    	        die($res->getMessage());
98
    	        die($res->getMessage());
99
        	}
99
        	}
Line 100... Line 100...
100
 
100
 
101
	        while ($row =& $res->fetchrow(DB_FETCHMODE_ASSOC)) {
-
 
102
//	        	$value[]=array($row['name']." (".sprintf("%02s",$row['code']).")",$row['code']);
101
	        while ($row =& $res->fetchrow(DB_FETCHMODE_ASSOC)) {
103
	        	$value[]=array($row['name']." (".sprintf("%02s",$row['code']).")",$row['code']);
102
	        	$value[]=array($row['name']." (".sprintf("%02s",$row['code']).")",$row['code']);
Line 104... Line -...
104
    	    }
-
 
105
 
-
 
106
 
103
    	    }
107
			$json = new Services_JSON();
104
 
Line 108... Line 105...
108
			$output = $json->encode($value);
105
			$output = json_encode($value);