- Messages
- 1,682
- Reaction score
- 32
- Points
- 48
I want to be able to update an array
and it places the array in a database, and when the user updates the database to add in a new plan, I also want it to update the configuration files.
I'm thinking like fopen(), look for the end of $planOptions, insert the comma for the previous ending, then add in the new one(s), and don't insert the comma for the finishing one
I am offering 200 credits to whoever can solve this for me
PHP:
/* Plan Options */ // 'Plan Name' => 'Plan ID'
$planOptions = array( 'Unlimited (5/month)' => '1',
'Unlimited (50/year)' => '2',
'500 texts (1/month)' => '3',
'1500 texts (2/month)' => '4',
'4000 texts (3/month)' => '5',
'7000 texts (4/month)' => '6' // do NOT end the last one with a comma(,)
);
I'm thinking like fopen(), look for the end of $planOptions, insert the comma for the previous ending, then add in the new one(s), and don't insert the comma for the finishing one
I am offering 200 credits to whoever can solve this for me
Last edited: