I am trying to understand/learn the use of jDatabase on a Joomla 5.1 site, trying to follow the example in https://docs.joomla.org/J4.x:Inserting_ ... _JDatabase.
I have successfully implemented Insert statements but can't seem to get my Update statement to work.
Attached is the Update code with 5 error_log statements and following is the error_log output. The message on the screen is "Unknown column '$my_birth_date' in 'field list'" - $my_birth_date is a variable that has been tested and is a correct string. I don't feel I am trying to express it as a column in a field list. One additional thing I don't understand is, if the conditions are defined as an array, how does the operator (in this case AND) get defined?
I hope I have explained this clearly and someone can help me to understand.
I have successfully implemented Insert statements but can't seem to get my Update statement to work.
Attached is the Update code with 5 error_log statements and following is the error_log output. The message on the screen is "Unknown column '$my_birth_date' in 'field list'" - $my_birth_date is a variable that has been tested and is a correct string. I don't feel I am trying to express it as a column in a field list. One additional thing I don't understand is, if the conditions are defined as an array, how does the operator (in this case AND) get defined?
I hope I have explained this clearly and someone can help me to understand.
Statistics: Posted by Lxg — Sun Sep 01, 2024 8:32 pm