I have a dbase where Salespeople enter in their sales (php) off a website and their sales are tracked by their salesrepid.
Their salesrepid is also their username. I havent even been able to come close and since my php knowledge is about 0 then ideally if you could point me to a tutorial that would help would be great (not php.net -- that is was to technical).
I would like to know how to set up a funciton to add all sales by salesrepid -- so joe schmo with salesrepid of A0023454 enters. I would like all his sales tallied up after he logs in. I tried passing on his Username which is stored in a session variable but i cannot get a sum.
I can add $a + $b but how do i add all values associated with $salesrepid.
zzzzzz
Their salesrepid is also their username. I havent even been able to come close and since my php knowledge is about 0 then ideally if you could point me to a tutorial that would help would be great (not php.net -- that is was to technical).
I would like to know how to set up a funciton to add all sales by salesrepid -- so joe schmo with salesrepid of A0023454 enters. I would like all his sales tallied up after he logs in. I tried passing on his Username which is stored in a session variable but i cannot get a sum.
I can add $a + $b but how do i add all values associated with $salesrepid.
zzzzzz