dbowen wrote:
>
> $q = str_replace('?', '<span style="background-color:
> yellow">%s</span>', $query->getQuery());
>
> This gives me the actual queries with the replaced values highlighted.
>
Your str_replace() solution above doesn't support named parameters, and also
fails if you have question marks inside strings in your query. So you are
bound to get results like the following:
SELECT * FROM mytable WHERE id = :idvalue AND quotation = 'Et tu, brute%s'
Regards,
Bill Karwin
--
View this message in context:
http://www.nabble.com/Zend_Db--%3E-last-query-with-values-tp17738679p17985843.html
Sent from the Zend Framework mailing list archive at Nabble.com.