用下面debug_mysql_query这个函数代替mysql_query

if (!function_exists('debug_mysql_query')) {
 
    function debug_mysql_query($query)
    {
        $js_query = str_replace(array('\', "'"), array("\\", "\'"), $query);
        $js_query = preg_replace('#([x00-x1F])#e', '"x" . sprintf("%02x", ord("1"))', $js_query);
        echo ''."n";
        return mysql_query($query);
    }
}

螢幕快照 2010-01-07 3.30.54 PM.png

转载请注明:韦旭红的点点滴滴 » 在firebug显示mysql query