View Single Post
Old 21st June 2012, 11:24
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts


all ..._get() functions in the API support a array as ID parameter and in the array you can use any field of the corresponding database table. The values can contain % as wildcard.

so this query:

$clients = $client->client_get($session_id, array('contact_name' => '%John%'));

woud return all clients were "John" is in the contact name field.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from
Reply With Quote