As requested,
Take this as an example
$myrow[6] for example, is the following values from the DB.
poor
LessThanSatisfactory
poor
Excellent
MoreThanSatisfactory
poor
I would expect the code to give each one of those results, a numerical value, so in the example list above, it should create the following values.
1
2
1
5
4
1
I would expect the $total += to add up each value. For example,
1+2+1+5+4+1 = 14
when doing echo "$total"; I would expect it to display 14. Instead, the result I am getting is 121541 a list of each value that was given to each word.
AstroTeg, Thanks for the no quotes idea, i will try that when im back in the office on monday.
Weedpacket, Currently i am only writing this for one field, but when i get this working, I will be doing it over about thirty fields. If you could provice me with an example query to execute, to map the value's to a number, it would be most appreciated, I couldnt work out how to do it, so went for doing it in the php code, not the query.
Thanks for the sugestions.