- Posts: 15
- Thank you received: 2
PHP Script: How to get plan title
- Daniel
- Topic Author
- Offline
- New Member
Less
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
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
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:
Regards
Tuan
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.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.