string replacing an array
Posted: Sun Oct 22, 2006 9:06 pm
I'm using a multidimensional array for looping through a result set.
I need to apply some formating to specific columns... how would I do this?
For example, I am able to do the following
This works, however with error reporting on, it says "Use of undefined constant start_dt - assumed 'start_dt' "
So i'm assuming this is not the correct way to do this....
[/quote]
Code: Select all
while ($row = $db->fetch_array())
{
$result[] = $row;
}For example, I am able to do the following
Code: Select all
$result[1][start_dt] = $result[1][start_dt] . ' added text';So i'm assuming this is not the correct way to do this....
[/quote]