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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • problems with custom search and membership type listing
Pages: [1]

Author Topic: problems with custom search and membership type listing  (Read 1257 times)

noraD

  • Guest
problems with custom search and membership type listing
June 24, 2008, 04:04:36 am
Hello,

I tried to modifiy the custom search to get a Membership Types and Member Address Data Listing - but it don't get it and I'm not that experienced with PHP and SQL.
Maybe you can help me -
Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') JOIN civicrm_membership_type AS mtype ON mem.membership_type_id=m' at line 14, 1064
I attach my modified MembershipListing

thanx n

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: problems with custom search and membership type listing
June 24, 2008, 04:33:05 am
Looks like your SQL FROM statement has unmatched brackets (line 143)

civicrm_contact contact
LEFT JOIN civicrm_address           ca         ON (ca.contact_id = contact.id AND ca.is_primary = 1)
LEFT JOIN civicrm_membership  AS mem     ON contact.id=mem.contact_id)
JOIN civicrm_membership_type  AS mtype   ON mem.membership_type_id=mtype.id AND  mem.status_id!=4)
JOIN civicrm_membership_log    AS mlog     ON mem.end_date=mlog.end_date

noraD

  • Guest
Re: problems with custom search and membership type listing
June 24, 2008, 05:20:40 am
sorry - I solved the problem,
forgot the brackets in line 143
  function from( ) {
        return "
((((

;)

greets
n

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • problems with custom search and membership type listing

This forum was archived on 2017-11-26.