API2_query output problem
Hi,
I used the following code
[PHP]
include '../xmlapi.php';
$ip = 'ip';
$root_pass = 'pwd';
$account = "acc";
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth($account,$root_pass);
$xmlapi->set_output("json");
$xmlapi->set_port(2082);
$xmlapi->set_debug(1);
$output = $xmlapi->api2_query($account, "Email", "listpopswithdisk" );
print $output;
[/PHP]
The output was in
such a format
{"cpanelresult":{"apiversion":2,"preevent":{"result":1},"data":[{"mtime":1411037171,"diskquota":"unlimited","_diskused":"54
I want the output to be in a table. Can anyone suggest
how can I do so
-
Hello :) I have moved this thread to our developers forum. You should receive more user-feedback here. Thank you. 0 -
Can you clarify, do you want to store this data in a MySQL table or do you want to output as an HTML table? 0 -
[quote="tdl, post: 1734502">Can you clarify, do you want to store this data in a MySQL table or do you want to output as an HTML table?
I'm trying to learn this and am curious how to do this also - would you be able to provide an example for each (as a MySQL table and as HTML)? Thanks in advance!0
Please sign in to leave a comment.
Comments
3 comments