Suppose I have a table with columns fname, lname, test1,test2,test3.
How do I get all rows into an associative array that will look like:
$array=('name'=>56, 'anothername'=>32, 'somename'=>48,'thisothername'=>82);
name is a concartination of fname and lname, and the value (e.g 56) is the sum of test1,test2 and test3.
Any help will be greatly appreciated.