CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How can I get value of custom field
Pages: [1]

Author Topic: How can I get value of custom field  (Read 1235 times)

ViJu

  • Guest
How can I get value of custom field
July 26, 2007, 07:52:20 am
I use CiviCrm 1.6 and Drupal 5,

I need get value of one custom field of contact,

if I get it by query
SELECT custom_field_id, char_data FROM civicrm_custom_value c WHERE entity_id = $orgid and (custom_field_id = 1 or custom_field_id = 14
when error occurred:
SELECT command denied to user 'j'@'localhost' for table 'civicrm_custom_value']

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: How can I get value of custom field
July 26, 2007, 08:48:53 am
Do you have rights to the database as 'j'@'localhost' ? You can check this by issuing SHOW GRANTS ;

You are also missing a closing bracket

SELECT custom_field_id, char_data FROM civicrm_custom_value c WHERE entity_id = $orgid and (custom_field_id = 1 or custom_field_id = 14)

ViJu

  • Guest
Re: How can I get value of custom field
July 26, 2007, 01:31:48 pm
I thought where is another way get values from custom fields,

e.g. I tried crm_get_contact(array('contact_id' => 111)),
with individuals it works, but with organisations it is't work,
I don't understand why  ???

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How can I get value of custom field
July 26, 2007, 03:10:32 pm
Unfortunately we don't have sufficient resources to support older versions of CiviCRM. If you can recreate this problem on the current release (1.8 beta) - please file an issue on the issue tracker.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How can I get value of custom field

This forum was archived on 2017-11-26.