Code: Alles auswählen
INSERT="INSERT INTO \`device\` ( \`index\` , \`ip\` , \`hostname\` , \`contact\` , \`type\` , \`location\` , \`date\` , \`fw\` , \`settings\`)\
VALUES ( '', '$host','$HNAME','$CONTACT','$TYPE','$SITE','$DATE','$CURRENTFIRMWARE','$DATA' );"
echo $INSERT | mysql $DBNAME 2>/tmp/error.log
ERROR 1054 (42S22) at line 1: Unknown column 'settings' in 'field l