PHP Script: How to get plan title

  • Daniel
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #137932 by Daniel
PHP Script: How to get plan title was created by Daniel
Hello,

I try to generate a JSON object. I could get get the plan id by using $row->plan_id. How can I get the title of the plan?

Thnaks a lot

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #137941 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PHP Script: How to get plan title
Hi Daniel

You can get plan title base on that planId. Something like:
Code:
$plan = OSMembershipHelperDatabase::getPlan($row->plan_id); echo $plan->title;

Regards

Tuan

Please Log in or Create an account to join the conversation.