CodeIgniter Forums
Parameter Support for simple_query Function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Parameter Support for simple_query Function (/showthread.php?tid=355)



Parameter Support for simple_query Function - mertdogan - 11-24-2014

Support of parameters in queries is natural way of executing queries.

And adding parameter support to simple_query requires only single line of code:

Code:
if ( $binds ) $sql = $this->compile_binds($sql, $binds);

and get
Code:
$bind=false
in variables. i don't think that; this will be a performance issue.