uppercase SQL

This commit is contained in:
Isaac Connor 2017-03-30 13:05:10 -04:00
parent 1d146b112a
commit 56476a7774
1 changed files with 3 additions and 3 deletions

View File

@ -27,10 +27,10 @@ require_once( 'includes/Monitor.php' );
$groupSql = '';
if ( !empty($_REQUEST['group']) ) {
$row = dbFetchOne( 'select * from Groups where Id = ?', NULL, array($_REQUEST['group']) );
$sql = "select * from Monitors where Function != 'None' and find_in_set( Id, '".$row['MonitorIds']."' ) order by Sequence";
$row = dbFetchOne( 'SELECT * FROM Groups WHERE Id = ?', NULL, array($_REQUEST['group']) );
$sql = "SELECT * FROM Monitors WHERE Function != 'None' AND find_in_set( Id, '".$row['MonitorIds']."' ) ORDER BY Sequence";
} else {
$sql = "select * from Monitors where Function != 'None' order by Sequence";
$sql = "SELECT * FROM Monitors WHERE Function != 'None' ORDER BY Sequence";
}
$showControl = false;