array key problem
Posted: Tue Oct 06, 2009 1:06 am
Hi
I place a piece of code and its result. I don't know why array value is not shown.
Even when I use array_key_exists(), it returns false
this is the code:

I place a piece of code and its result. I don't know why array value is not shown.
Even when I use array_key_exists(), it returns false
this is the code:
Code: Select all
$sql = mysql_query("SELECT * FROM brokerprices");
while (list($name,$value) = mysql_fetch_row($sql)) {
$result[$name]=$value;
}
print_r($result);
echo "<br><br>But there should be '0.79' that is not:".$result[ASAS];