Hi, I am using the following code to extract currently logged user name from PMA_DBI_fetch_value('SELECT USER();')

//        $userAndHost = PMA_DBI_fetch_value('SELECT USER();');
//        $userAndHost = str_split($userAndHost);
//        while ($i=0 < count($userAndHost)-1) {
//            $username += $userAndHost[$i];
//            $i++;
//            if ($userAndHost[$i] == "@") {
//                break;
//            }

It takes a lot of time to load up the web page mainly due to the code above.  Is there any alternative to this?

Thanks!

P.S. follow my live progress update streams at zixan.info.  I find it is much more effective way to communicate more frequently. 
--------------------------------------------------
Best regards,
Zeeshan Mughal
Email:  zeeshanmughal@ieee.org
Web:  http://www.zixan.info