< Browse > Home /

| Mobile | RSS

viswanath.gavva

Show mysql query log with firebug

Replace all mysqlquery() calls in your project to debugmysql_query() to see all mysql queries in Firebug console.In general we use db_query function.so we need to change the mysql_query() in db_query() to debugmysql_query().
add the following function in the same page where we wrote db_query function .
if (!function_exists(’debug_mysql_query’)) {
function debug_mysql_query($query)
{
$js_query = str_replace(array(’\\’, “‘”), array(”\\\\”, “\\’”), $query);
$js_query = [...]

[ More ] December 26th, 2008 | No Comments | Posted in Web development |