When using an execute_sql ($sql), I can see the "Success" message displayed briefly. Even with debug mode OFF. How can I get read of this message?
Joseph
PS.- The $sql contains the following: "UPDATE ".$CFG->prefix."glossary SET specialalphabets = '".$specialalphabets."' WHERE mdl_glossary.id = ".$glossary_id;
I've tried to use moodle API's update_record() but can't get it to work.
Any suggestions?
If I remember correctly, an extra optional param needs to be passed in as false to indicate you do not want the html response. For some crazy reason this defaults to true and thus your confusion!
hope this helps,
dan
hope this helps,
dan
That's correct, thank you Dan!
You should not use execute_sql for things like this. It is only really intended for use in upgrade code.
You can do what you are trying to do with set_field.
You can do what you are trying to do with set_field.
Of course, it's much better to use set_field.
Thanks Tim!
Thanks Tim!