Hello!

I know what I want to do but don’t know how to put the pieces together.

  • Build a database
  • Get data store and output
  • Have users access it whenever they want. ex…

start mileage km | end mileage km | total km | convert mi | rate | total


5555 I 6666 | 1111 | 690.34 | $0.49 | $338.27

Would you do calculations with JavaScript before reaching the backend.or do the calculators with php at server level and store it. It some other language.
Essentially I want to perform spreadsheet calculations and make an app that is easier to use reliable. I’m building this for myself and the old bitter bastards I work with.

Do you know why there are no bright eyed smiling truck drivers? because they haven’t given up on there dreams yet. I

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

I would recommend doing the calculation with PHP rather than JavaScript because with JavaScript the users could manipulate the logic in their browsers if they decided to.

PHP works extremely well with MySQL, so you could just have a function or a class that connects to the database, makes the calculation and then you could just display this on your front end with HTML/CSS/JS.

Hope that this helps!
Regards,
Bobby

Submit an Answer