when using json_decode i assume that you have {"a":1,"b":2,"c":3,"d":4,"e":5}
something like this containt in that tabel row. Try to use :
$pmrresults = var_dump(json_decode($obtaindata['pmr'], true))
then you can use $pmrresults['a'];
You have to json_encode()
when you store values to DB
I don't want to rent another server just to test it... it's costly.
... user XAMPP it's free for testing.
manpreet
Best Answer
2 years ago
Hey guys I want to make an academic-oriented matching website that allows boys and girls to find their potential partners through academic performance and hobbies.
I was just thinking about convert quantity of exam grades eg. A, B, C and convert them into leagues like S-class, A-class. First I want to convert exam grade A into integer of 5, exam grade B into integer of 4 and so on. Then I sum them up and classify them into their respective classes.
The original and tiring code... I'm not sure whether it's going to work.
Don't blame me though ,I was just started learning php and try to do something weird...
Any replies or comments are highly appreciated.