Questions tagged [portfolio.php]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
308 views

Pset7 Can't Print How Much Cash a User has? [closed]

Earlier today, I was trying to print out how much cash a user has for portfolio.php. I kept on getting a bunch of errors. I changed my code many times, but could never get rid of the errors I was ...
1
vote
1answer
737 views

Pset7 Table HTML and CSS formatting

I'm working on pset7 porfolio, and I am trying to neatly style the table that shows the owned stocks. I can't seem to figure out the formatting/ ordering of the styling. I looked at w3's css styling ...
1
vote
2answers
700 views

illegal string offset

While trying to print user's portfolio (i.e. shares, price and symbol) in portfolio.php, I keep getting : "Warning : Illegal string offset 'symbol' " "Warning : Illegal string offset 'shares' " "...
0
votes
1answer
34 views

PSET7: Extracting strings from queries with PHP

Not a bug, but wondering if someone can explain why this works... I'm attempting to display someone's name and cash position. In index, I query the tables for the relevant values. This returns an ...
0
votes
1answer
76 views

illegal string offset error in portfolio

I am passing an associative array(positions) via render: render("portfolio.php", [ "title" => "Portfolio","positions" => $positions]); and trying to print it in portfolio using below code: ...
0
votes
2answers
195 views

My cash won't display in my porfolio

I've been at this for a while now... My code in index.php render ("portfolio.php", ["cash" => $_SESSION["cash"] ] Then in portfolio.php <?= $cash ?> I get a error " Undefined index: cash" ...
0
votes
2answers
259 views

pset7 finance - centre align the nav bar

I am struggling to align the nav bar to the centre in pset7 finance. I've done everything else, including all the other formatting to match the staff solution but, this has me stumped! My code is ...
0
votes
1answer
65 views

Unable to manually insert rows in Portfolio table

Working on sell.php now. Trying out Sell, I naturally find the need to replenish shares of some stock after selling, for testing purposes. When I try to manually insert, like instructions said to do ...
0
votes
1answer
994 views

Undefined index in portfolio.php

It seems like every hour I have another question I can't seem to figure out with pset7 :( I'm sorry to whoever is kindly answering all of these queries and I appreciate the help a lot! I know at least ...