- lingaiah T
- SnapDevelop
- Saturday, 20 February 2021 04:50 PM UTC
Dear Sir,
We are using Rest API, with PHP , If we want to create / Insert row through controller and IDatastore working fine.
But update the values in the table , still it is inserting instead of update.
Is there any easy way to update values in the DB table?
Example : Controller 1. Create user ( IDatastore <> datastore)
{
///////
}
Controller 2. UpdateUser ( Idatastore <> datastore
{
I want to Update same like PB, datastore.update().
update function wokring fine, but instead of update the row, inserting new row and I am getting primary key violation.
}
Thanks in advance.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.