
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 04:17 PM
Hi,
as by now it is not possible to user custom-fields as parameter in custom actions (like http://my-php-webserver/get_asset_custom.php?field1={custom01}&field2={custom05}), I would like to do a database query through a PHP-script.
How do I connect to the database?
username?
password?
The custom action would look like this:
http://my-php-webserver/get_asset_custom.php?asset={assetid}
Inside the PHP-script the assetid is then queried on the lansweeper database (on the lansweeper-server) and the custom-fields are returned.
as by now it is not possible to user custom-fields as parameter in custom actions (like http://my-php-webserver/get_asset_custom.php?field1={custom01}&field2={custom05}), I would like to do a database query through a PHP-script.
How do I connect to the database?
username?
password?
The custom action would look like this:
http://my-php-webserver/get_asset_custom.php?asset={assetid}
Inside the PHP-script the assetid is then queried on the lansweeper database (on the lansweeper-server) and the custom-fields are returned.
Labels:
- Labels:
-
General Discussion
0 REPLIES 0
