Warning: Undefined array key "id" in /var/www/html/scripts/command_done.php on line 4

Warning: Undefined array key "device_name" in /var/www/html/scripts/command_done.php on line 4

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and device_name=''' at line 1 in /var/www/html/scripts/command_done.php:4 Stack trace: #0 /var/www/html/scripts/command_done.php(4): mysqli_query() #1 {main} thrown in /var/www/html/scripts/command_done.php on line 4