Search found 2 matches

by bnickel
Tue Nov 21, 2017 4:20 pm
Forum: Modules/Add-Ons
Topic: Parameterized Queries
Replies: 1
Views: 964

Re: Parameterized Queries

Disregard. This is a result of me being a noob with ADOdb.

1. Multiple statements aren't supported. I had to use two queries.
2. I had to use the ? syntax with Execute($sql, array(x,y));
by bnickel
Tue Nov 21, 2017 2:29 am
Forum: Modules/Add-Ons
Topic: Parameterized Queries
Replies: 1
Views: 964

Parameterized Queries

Sorry if this has been asked before. I couldn't find a similar question in search. I'd like to know how to do parameterized queries. I am getting a 'Data passed to CMSMS\Database\Statement::Bind must be an associative array' error when trying with the following code: $sql = <<<EOT select @last_paid_...

Go to advanced search