K
|
kohle 12/23/2021 |
Hi, after $sql=" update .... if you run your project you will get an error (top of the browser) which shows the $sql content. Second, use the database api in the future: $sql = "Update members set field1 = " . $A . " where field2 = '" . $B . "' and field3 = '". $C . "'"; rgs |
J
|
Jan author 12/23/2021 |
Thank you for your answer. Of course in the browser I can see the error message at the top. When I run the query in phpmyadmin it works fine, also in an event (eg after addrecords ) But not in the server tab of a custom button. this message appears in the browser: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version ... |
K
|
kohle 12/23/2021 |
Hi, can you send the sql from the error message, or whole line. (echo $sql) Is field1 a numeric value in the database? rgs |
J
|
Jan author 12/23/2021 |
Field a is a "double" field In reality the field names are unclear because they are names in Dutch |
J
|
Jan author 12/24/2021 |
It seems that the server event can create a query with only one variable. So I solved this in a different way. thanks |