Welcome Guest, Not a member yet? Register   Sign In
PHP array question
#1

[eluser]frist44[/eluser]
I don't know why i'm having so much trouble with this. I did a sql select and my outcome is:

name => xxxxx for each row.

So I'm attempting to make a helper that would add:

value=> $row['name'] for each row, but I'm stuck.

I have:

Code:
foreach ($xArr as $row){
  $row['value'] =  $row['name']
}

but i know that's not right. any help?


Messages In This Thread
PHP array question - by El Forum - 12-31-2009, 02:07 PM
PHP array question - by El Forum - 12-31-2009, 02:26 PM
PHP array question - by El Forum - 12-31-2009, 02:30 PM
PHP array question - by El Forum - 12-31-2009, 02:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB