Does $DB->execute() use prepared statements?

Ri: Re: Does $DB->execute() use prepared statements?

by Andrea Tullo -
Number of replies: 2
Sadly i have to update a record in a table if a record in another table meets condition, but these 2 tables do not have a connected unique id, so i cannot identify the record when i create the object to pass to the update_record() function (external plugins...)
Thanks a lot for your help, i was able to do what i needed!
Average of ratings: Useful (1)
In reply to Andrea Tullo

Re: Ri: Re: Does $DB->execute() use prepared statements?

by Somnath Roy -

i have a query can i used $DB->query to execute select statement 

In reply to Somnath Roy

Re: Ri: Re: Does $DB->execute() use prepared statements?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Probably $DB->get_records_sql()