Subversion Repositories eFlore/Applications.cel

Rev

Rev 416 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 416 Rev 423
Line 64... Line 64...
64
			        	}
64
			        	}
65
				        while ($row =& $res->fetchrow(DB_FETCHMODE_ASSOC)) {
65
				        while ($row =& $res->fetchrow(DB_FETCHMODE_ASSOC)) {
66
			                $value=$row['count'];
66
			                $value=$row['count'];
67
			    	    }
67
			    	    }
Line 68... Line -...
68
					
-
 
69
						$json = new Services_JSON();
68
					
70
						$output = $json->encode((integer)$value);
69
						$output = json_encode((integer)$value);
Line 71... Line 70...
71
						print($output);
70
						print($output);
Line 72... Line 71...
72
						
71
						
Line 83... Line 82...
83
        	}
82
        	}
84
	        while ($row =& $res->fetchrow(DB_FETCHMODE_ASSOC)) {
83
	        while ($row =& $res->fetchrow(DB_FETCHMODE_ASSOC)) {
85
	            $value[]=array($row['station']);
84
	            $value[]=array($row['station']);
86
    	    }
85
    	    }
Line 87... Line -...
87
		
-
 
88
			$json = new Services_JSON();
86
		
89
			$output = $json->encode($value);
87
			$output = json_encode($value);
Line 90... Line 88...
90
			print($output);
88
			print($output);