Named variables in sql query |
(06-26-2021, 05:41 AM)InsiteFX Wrote: Try this one, no time to test right now busy. Just tested this also , not working either here is my full code in the model : Code: $sql = 'SELECT I've tried your suggestions as well as numerous other ones , the blinded values are not getting replaced no matter what . Also the named bindings documentation seems to be referencing a very old version of codeigniter . In the query builder class I can only find the documentation about bindings which is very different . Anyway I can't be the only one here with a similar problem , nobody else in here ever wanted to create a dynamic query using raw sql ? Some other similar queries I've managed to convert to query builder but this one uses MONTHNAME and COUNT to return some values which I haven't figure out yet if I can do in a single query as in raw sql. |
Messages In This Thread |
Named variables in sql query - by stepgr - 06-26-2021, 01:03 AM
RE: Named variables in sql query - by InsiteFX - 06-26-2021, 01:51 AM
RE: Named variables in sql query - by stepgr - 06-26-2021, 02:17 AM
RE: Named variables in sql query - by InsiteFX - 06-26-2021, 05:41 AM
RE: Named variables in sql query - by stepgr - 06-29-2021, 06:42 AM
RE: Named variables in sql query - by includebeer - 06-29-2021, 05:41 PM
RE: Named variables in sql query - by php_rocs - 06-30-2021, 06:17 AM
|