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

    Joined:
    May 25, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page