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!

MysqlFE::userdbprivs() returning only 1

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

  1. testpgm

    testpgm Member

    Joined:
    May 25, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    51
    Hai,
    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:
    include("xmlapi.php");
    $db_host = "aaa";
    $cpuser = "bbbb";
    $xmlapi = new xmlapi($db_host);
    $xmlapi->password_auth(role,pass);
    $result=$xmlapi->api2_query($cpuser,'MysqlFE','userdbprivs',array(dbname,username));
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice