function get_client_info($client_id = null)
{
$query = DB::select('*')->from('clients');
if ($client_id != null)
{
$query->where('client_id', '=', $client_id);
}
$data = $query->execute()->as_array();
// Etc.
}
It looks like you're new here. If you want to get involved, click one of these buttons!