CS50 Pset7组合

时间:2016-04-10 06:36:43

标签: php mysql

不明白我应该怎么做才能解决它。它说关联数组是空的。

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

像这样构建你的关联数组:

$positions["name"] => $stock["name"];
$positions["price"] => $stock["price"];
$positions["shares"] => $stock["shares"];
$positions["symbol"] => $stock["symbol"];