ModelViewController The user of a website clicks a button or submits a form. This data is sent to the Controller which sends the form or […]
Category: PHP & MySQL
What is a function?
In programming a function is a bit of code that waits around until its service is called upon. When called it performs a pre-programmed task. […]
How do you force a number to have 2 decimal points in PHP?
The function you need is called number_format(). Using number_format (9876.54321, 2) would return 9876.54. Just change the second number (2) to change the number of […]
How do you store decimal numbers in MySQL?
There are various ways to store decimal numbers in MySQL but the simplest is probably to make the Datatype = float and the Length or […]