[geeklog-devel] [geeklog-cvs] Geeklog-1.x/system lib-security.php, 1.71, 1.72
Michael Jervis
mjervis at gmail.com
Mon Jun 30 03:49:23 EDT 2008
> $sql can also be an array:
>
> $sql['mysql'] = ...
> $sql['mssql'] = ...
> DB_query($sql);
Ah, now I'm not sure if that's better or not. Because with an IF you
only have to process the string build once.
Was wondering about having, as we do with languages, a $SQL array with
the query fragments in it. But that might make the code harder to
read.
More information about the geeklog-devel
mailing list