Question:
What is the best way to code a simple stock market online?
Marco
2012-12-09 23:40:26 UTC
I need to write a code or explain how to set up a simple online stock market. Different users on this site would buy shares in stocks (a simple stock market example - no real money or anything).
I was told I need a PHP website backed by an extensive sql database.
Can anyone give me more specifics or what's the best way to go about this?
Thanks!
Five answers:
Felix M
2012-12-09 23:56:08 UTC
Do you want to register your websites? Yes, PHP and SQL database is very important and it can't be done in just a day. Well i guess you have some programming skills to create that one. Also, you can use FREE website maker like joomla or buy a program application but quite expensive. What if a creating a blog instead.
anonymous
2014-09-24 02:39:15 UTC
Penny stocks, also known as cent stocks in some countries, are common shares of small public companies that trade at low prices per share. They are notoriously risky but if you follow a special method I've learned you can earn good money at almost no risk. This is the site I use: http://pennystocks.toptips.org



I definitely recommend subscribing to this site in particular. Very good research, quality stocks. I was a bit weary of penny stocks from all the bad hype they receive but this guy is pretty legit. He's put my mind at ease with a lot of the fears I've had. I especially like that he doesn't send out announcements left and right. I've signed up for other websites that fill my in-box with one company after the other. I don't know where to even start with so many choices in front of me! Nathan sends me one idea a week and that's all I need. Working so many hours during the week leaves me with very little time when I get home to start doing tons of penny stock research. I'm always eager to see what Nathan's next suggestion is each Friday and I love having time on the weekend to do my research.



As said above if you want to make money with penny stocks you have to follow some proven methods. This one in my opinion is the best: http://pennystocks.toptips.org

I hope it helps
Ash
2012-12-10 11:55:02 UTC
PHP is a server side scripting language. When someone types a URL into their browser, it is making a request to a server. If the request is for a PHP page and everything is working the way it should, the server will run the script and send the result back to the browser that requested it.



PHP might look something like this:


// This will demonstrate a loop which prints the value of $i on each line

$var = 5;

for($i = 0; $i <= $var; $i++){

print 'On this iteration, the value of $i is: ' . $i . "\n
";

}

?>



Using HTML, you can create a forms, buttons, check boxes, etc. to allow people to submit information to a PHP page which can use that information to perform calculations, retrieve data, change archives, request data from other websites, etc.



ie:











The thing to keep in mind about a server side scripting language is that all the code you write will be executed on the server. The user who requested the page will only see the output of a script.



When people want to store information in a database using PHP they're frequently using MySQL, which is a database management system which can allow people view and edit information stored in database using MySQL specific instructions.



ie:

select * from users where "first_name"="John" and "last_name"="Doe";



It's relatively simple to write PHP code to use MySQL, but if you're going to write your code from scratch you'll have to learn both.



Keep in mind that building out a full stock market application from scratch is a lot of work. You will need to make user accounts and keep track of stock prices, bids; perhaps you will even want to make detailed reports of your stocks in which case you'll have to make an application to manage that as well. All of these things will probably require you to build a sort of web interface so that people can edit their own data and it's easier for you to edit data regarding the stock market. There are ways to get around that necessity but you'd probably be writing a script that you would run once and then change later when you need to make the same kind of update to different information which can be quite a pain.



But if you're determined http://w3schools.com/ is a good place start learning about PHP and MySQL.



If you want something that has a lot of this code already built out for you, you might consider a content management system (CMS). A CMS provides you will web interfaces you might otherwise have to build out yourself. You can install commerce plug-ins, modules, extensions and the like. A CMS is a lot more complex than the application you would write by yourself because it has to be written in a way that makes the system flexible and modular. Various database tables will be used to keep track of module settings, display information to edit modules, display information to the end user, etc. You don't have to know very complex details about PHP and MySQL in order to use these systems, but you should get a good cursory knowledge of it, and how a CMS works.



Some major CMS platforms around right now are Joomla, Wordpress and Drupal. If you need help selecting a CMS, try checking out http://cmshelp.me/
Karen
2016-02-23 00:53:51 UTC
Is this a project in your school? This is not a simple task especially if you need an interactive website. Things you need in this project; 1. Programming skills in HTML, CSS, PHP, Javascript (for animation or fancy text effects) 2. Database skills in SQL or MySQL. Usually the partner of PHP is MySQL. All that software are free to download. You can also make a website in Adobe dreamweaver which is faster than PHP/MySQL hard coding. 3. How much does it cost? It depends on what type of business and how much information you have in the website basically your database capacity. 4. You need someone to maintain the site for upgrades and future errors. Note: You can register your website to a free web hosting sites.
anonymous
2012-12-09 23:43:11 UTC
No need to write anything. Download one, all banks, stock exchanges and financial companies have one. Dumb exercise from the teacher.

Peace.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...