Edit edits the row but also adds another row
Edit edits the row but also adds another row
shile
Posts: 2Questions: 1Answers: 0
When i edit a whole row or only one column it does edit successfully but it also adds another row in database with those new values so of course when i refresh and get new data there is the new row and previous edited one...help?
This discussion has been closed.
Answers
We'll need a little more information to be able to offer any assistance here. Could you show us the client-side and server-side code that you are using please? I presume it is Editor you are using?
Allan
Here is the code...
HTML
JAVASCRIPT
PHP
Very odd! The
restaurant_id
parameter is the only one that stands out for me that could potentially go wrong, but to be honest, I'm struggling to see how - it looks like it should be okay!Can you confirm what version of Editor you are using please? If not 1.4.2, could you try that.
Could you also try it without the
where
condition and see if the same problem occurs?Thanks,
Allan