Problem with mysql update working in localhost but not in test website

The problem is that I am updating a table so that I could show the lines at the table in different colours.like this.
image

I am geting the data from a sql and trying to update the data with
"update dag_tid set farge = ? where stand_id = ? and dag_id = ? and tidtekst = ?

in localhost (wappler development) it works perfectly

But on the developer test server (Hetzner server) it dont update

The select script that get the data to update is giving the correct data on both places. But on the test serve the update is not working.

How can I debug this update sql. Any idea.