I am having trouble with formatting php correctly. Specifically, when I need to use two sets of double quotes, how do I make it group them correctly?
eg:
query("INSERT INTO Holdings (id, symbol, shares) VALUES ($_SESSION["id"], "$_POST["symbol"]", $_POST["shares"]) ON DUPLICATE KEY UPDATE shares = shares + VALUES(shares)")
When I run this line, it groups these quotes together: "INSERT...."$_POST[["symbol"] . So, now "$_POST["symbol"]" isn't surrounded by quotes when the query is ran.