I've been working on CS50 Pset7, CS50 Finance, and I have everything working bar the sell page. Everything on the sell page works, except for the fact that when I click my drop-down menu to choose what shares to sell, I get blank options. I think my syntax is wrong inside the foreach loop, but I'm not sure. Have been stuck for ever! Below is part of my code.
<?php
$symbol = CS50::query("SELECT symbol FROM portfolio WHERE user_id = ?",$_SESSION["id"]);?>
...
<option disabled selected value=''>Symbol</option>
<option value=''></option>
<?php
foreach ($stocks as $symbol)
{
echo("<option value='$symbol'>" . $symbol . "</option>");
}
?>