assign value from fetch array

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

 



I have following code to fetch data from database.
I am able to print the array, but I got HTTP 500 error when I assign the
array the value to echo the result.

I think I am missing something between array and variable.

Your help and information is great appreciated,

Iccsi,


$row = $sth->fetchAll(PDO::FETCH_ASSOC);
print_r($row);
print("\n");
$name = "{$row['MyID']}";
echo $name;

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux