Whenever I try to buy or sell, I get this:
Fatal error: Duplicate entry '11' for key 'PRIMARY'
(if 11 is the ID I'm using.)
I'm not exactly sure where I'm going wrong, in my code or in making the table on phpMyAdmin. So now whenever I buy shares, they go into the row of ID '0' in portfolio, which I didn't assign a user_id to...