Skip to content
Permalink
Browse files

Update mqtt_search.inc.php

  • Loading branch information...
directman66 committed Apr 26, 2019
1 parent 364a4d4 commit 260312aacf980eb2a7a51f1f233293bf30d816aa
Showing with 3 additions and 1 deletion.
  1. +3 −1 modules/zigbee2mqtt/mqtt_search.inc.php
@@ -31,7 +31,9 @@
// $res=SQLSelect('SELECT * FROM (select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.* from zigbee2mqtt_devices WHERE MODEL<>"" ) zigbee2mqtt_devices ');
// $res=SQLSelect('SELECT * FROM (select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.* from zigbee2mqtt_devices WHERE MODEL<>"" )zigbee2mqtt_devices LEFT JOIN zigbee2mqtt_devices_list ON zigbee2mqtt_devices_list.zigbeeModel=zigbee2mqtt_devices.MODELID order by 1' );
//$res=SQLSelect('select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.* from zigbee2mqtt_devices order by MANUFACTURE' );
$res=SQLSelect('select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.*,LOCATION from zigbee2mqtt_devices, (select ID LOCID, TITLE LOCATION from locations) locations where locations.LOCID=zigbee2mqtt_devices.LOCATION_ID order by MANUFACTURE' );
// $res=SQLSelect('select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.*,LOCATION from zigbee2mqtt_devices, (select ID LOCID, TITLE LOCATION from locations) locations where locations.LOCID=zigbee2mqtt_devices.LOCATION_ID order by MANUFACTURE' );
$res=SQLSelect('select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.*,LOCATION from zigbee2mqtt_devices left join (select ID LOCID, TITLE LOCATION from locations) locations ON zigbee2mqtt_devices.LOCATION_ID=locations.LOCID order by MANUFACTURE ' );
//SELECT ID, TITLE FROM locations ORDER BY TITLE

0 comments on commit 260312a

Please sign in to comment.
You can’t perform that action at this time.