167
169
mysql_free_result( result );
169
snprintf( sql, sizeof(sql), "select distinct ControlDevice from Monitors where not isnull(ControlDevice)" );
171
snprintf( sql, sizeof(sql), "select distinct ControlDevice from Monitors where not isEmpty(ControlDevice)" );
170
172
if ( mysql_query( &dbconn, sql ) )
172
174
Error( "Can't run query: %s", mysql_error( &dbconn ) );