Questions tagged [finance]

The tag has no usage guidance.

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

How to determine how much cash a user has in C$50 Finance's portfolio.php

I've read portfolio's specifications. However, I have a doubt regarding how to update a given users's balance. Suppose a user with an id '1' buys a stock whose symbol is 'A' for a price '$B'. Now ...
-1
votes
2answers
1k views

SMTP Error: Could not authenticate

Can't send an email. Not sure what is going wrong and haven't found an answer through google yet. $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $...
2
votes
1answer
73 views

Pset7 How to Program Popup?

I'm trying to create a popup after a user successfully sells a stock. I want it to look like Chrome's confirm form resubmission popup I'm pretty sure I need javascript, html, and css, but I'm not ...
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
679 views

Pset7 How do I log a user in after they register?

I'm trying to make users be automatically logged in when they register, so they don't have to log in after they register, which is happening with my code right now. Here is my code, starting from ...
0
votes
0answers
137 views

Change the logo on the homepage of C$50 Finance

On the homepage of CS50 finance, there is this large logo with the text cs50 finance. I have tried to replace this logo with an image of my own, saving my own gif logo in the same folder as the cs50 ...
1
vote
1answer
247 views

Pset7, Finance, Extra feature, email. Mailer Error: SMTP Error: Could not connect to SMTP host

I would appreciate i anyone can help me here. I am almost done with pset7 but I am stuck on the extra feature. I chose to send a mail to the user in order to reset the password, but can't make the ...
0
votes
1answer
49 views

mashup.cs50.net and finance.cs50.net requires harvard id?

when I'm trying to access the staff implementation of either finance.cs50.net or mashup.cs50.net, both of which are linked to in respective problem set, I get prompted to verify myself with harvard id ...
0
votes
2answers
97 views

I encountered a `503 Service Unavailable` error while trying to access the staff's implementation of C$50 Finance. How can I resolve this?

I am trying to access http://finance.cs50.net/ to see the staff's implementation of the project but I'm getting a 503 Service Unavailable error. How can I resolve this?
0
votes
2answers
254 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 ...
1
vote
1answer
413 views

Server Error when trying to load CS50 Finance for first time

I followed all the steps in the intro of the pset7 spec (up until the xkcd sandwich joke) but cs50 finance loads a blank page in appliance's Chrome browser when I enter the pset7 URL. The element ...
1
vote
2answers
323 views

How many decimal places should the price in `quote.php` be formatted to?

In pset7 I am asked to format price to at least two decimal places but no more than four decimal places. Could someone please clarify? Should the exact number of decimal places be hardcoded, or ...
0
votes
1answer
229 views

Can't access quote.php, buy.php, sell.php, etc

When I click on the quote, buy, sell, etc. button on the CS50 Finance in the VMwarePlayer in Google Chrome, it pops up: Not Found. The requested URL/(quote, buy, etc.).php was not found on this server....
0
votes
1answer
237 views

sell.php, not able to sell

For some reason, the portfolio does not change after i sell the stock, can anyone please help.here's the code, i need some hints of whats going wrong.thanks in advance. sell.php : http://tny.cz/...
0
votes
2answers
361 views

PHPMailer with gmail

Hi im just trying to send an email using PHPMAiler and smtp server of gmail! I thought that it could have been easier! What have I written wrong? Did anyone also use PHPMAiler? Can anyone help me? &...
0
votes
0answers
115 views

How to use AJAX in C$50 Finance?

Corresponding to the MVC design flow, how do we use AJAX to make requests. Say I have a delete.php in /public and delete_form.php in /templates. Now the form gets rendered when someone clicks Delete. ...
2
votes
1answer
144 views

Does CS50 Finance follow MVC design?

To the experts, is it designed by following the MVC approach or is it just procedural programming that separates logic and views?
1
vote
1answer
258 views

Foreign key constraint error when linking ID to users table

In pset 7 I need to connect the ID from my table to the ID in users. But when I try to insert rows into my table I get the following error: SQL query: INSERT INTO `pset7`.`table` ( `id`, `...
0
votes
1answer
523 views

pset7 sell.php has problem

I am having a problem with the 'undefined index' in sell. I think it is because I don't know what the drop-down menu and submit button will return, and what that variable name will be. https://gist....

1
5 6 7 8
9