Help with Variable Variables in Array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all.  I can't quite figure out how to call the contents of a
variable variable in a mysql_fetch_array result and was hoping someone
could help . . .

inside the "fetch all rows" while loop, i have the following:

$right_row = "$" . myrow . "['" . $type . "_title']";

($type is assigned elsewhere, but in this case = 'article')

which outputs:

$myrow['article_title']

So far so good, but i can't seem to output the value of this variable
by printing

$$right_row

Any suggestions?

TIA,

Andrew

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux