query.prepare("INSERT INTO users (user_id,name,reg_date,designation,password ) VALUES (:user_id,:name,:reg_date,:designation,:password)");
query.bindValue(":user_id", id_s );
query.bindValue(":name", ui6->lineEdit->displayText());
query.
bindValue(":reg_date",
QDate::currentDate().
toString("dd-MM-yyyy") );
query.bindValue(":designation", ui6->comboBox->currentText());
query.bindValue(":password", id_s );
query.exec();
query.prepare("INSERT INTO users (user_id,name,reg_date,designation,password ) VALUES (:user_id,:name,:reg_date,:designation,:password)");
query.bindValue(":user_id", id_s );
query.bindValue(":name", ui6->lineEdit->displayText());
query.bindValue(":reg_date",QDate::currentDate().toString("dd-MM-yyyy") );
query.bindValue(":designation", ui6->comboBox->currentText());
query.bindValue(":password", id_s );
query.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks