Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MysqlFE::userdbprivs() returning only 1

Discussion in 'cPanel Developers' started by testpgm, May 26, 2010.

  1. testpgm

    testpgm Member

    May 25, 2010
    Likes Received:
    Trophy Points:
    I have been using the function MysqlFE::userdbprivs() for an account. Am getting the result as 1. No boolean values are getting displayed in the result. The code is as below:
    $db_host = "aaa";
    $cpuser = "bbbb";
    $xmlapi = new xmlapi($db_host);
    The result am getting is:

    SimpleXMLElement Object
    [apiversion] => 2
    [data] => SimpleXMLElement Object

    [event] => SimpleXMLElement Object
    [result] => 1

    [func] => userdbprivs
    [module] => MysqlFE
    Please help me to find where is the error?

Share This Page