I need some help on how to calculate amount. For example, my subscriptin is $100 per 100 credit, to calculate the amount of this or more, can someone provide me this scripts please.

Recommended Answers

All 2 Replies

Member Avatar

// Define the amount of credits to purchase
$amount = 100;

// Set the price
$price = $amount;

// Return the price
echo $price;


You need to be more precise and use better examples, and also at least try to solve the problem yourself.

"Please provide me the scripts" is not the way forward...

Thanks for this script, but what i want to do is to get the subscribed amount calculated irrespective of the amount subscribed. while the minimum credit is 100 for $100.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.