mirror of
				https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
				synced 2025-10-31 12:00:19 -04:00 
			
		
		
		
	Add sort for services for group then service
This commit is contained in:
		
							parent
							
								
									c9bcbc241b
								
							
						
					
					
						commit
						2d65d0f9df
					
				| @ -73,7 +73,7 @@ class Constellation | |||||||
|     global $mysqli; |     global $mysqli; | ||||||
| 
 | 
 | ||||||
|     //$query = $mysqli->query("SELECT id, name, description FROM services");
 |     //$query = $mysqli->query("SELECT id, name, description FROM services");
 | ||||||
|     $query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name "); |     $query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name ASC, services.name;"); | ||||||
|     $array = array(); |     $array = array(); | ||||||
|     if ($query->num_rows){ |     if ($query->num_rows){ | ||||||
|       $timestamp = time(); |       $timestamp = time(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user