No problem, glad to help. I did want to mention that if you are going to use named query parameters, the bindValue is just the parameter name. In your example, you have " = " as part of the parameter name, it should be something like:

Qt Code:
  1. query.prepare("INSERT INTO users (user_id,name,reg_date,designation,password ) VALUES (:user_id,:name,:reg_date,:designation,:password)");
  2.  
  3. query.bindValue(":user_id", id_s );
  4. query.bindValue(":name", ui6->lineEdit->displayText());
  5. query.bindValue(":reg_date",QDate::currentDate().toString("dd-MM-yyyy") );
  6. query.bindValue(":designation", ui6->comboBox->currentText());
  7. query.bindValue(":password", id_s );
  8. query.exec();
To copy to clipboard, switch view to plain text mode