Problem:
Misunderstanding of how an associative array is loaded.
Issue:
I have some code like this: (this is exact)
while($data[] = mysql_fetch_array($result,MYSQL_ASSOC)) {
}
The variable $data is passed to a function that will print a pdf table.
I'd like to manipulate some values on the rows as the '$data' variable is loaded. Then I'd like to pass it to the pdf function.
If I try to manipulate values in the loop above I get: "Notice: index 'such and such' is undefined.
Anyone have a suggestions?
(I do not want to change the pdf function that i pass data to.)
Thank You.