PHP / MySQL: Calculate number of orders placed
- or -
Post a project like this2933
£25(approx. $31)
- Posted:
- Proposals: 2
- Remote
- #1089514
- PRE-FUNDED
- Completed
Description
Experience Level: Intermediate
Hi,
I need a small bit of code written for osCommerce 2.2 that will calculate the number of orders a customer has placed and then display some text on a page.
So the code will do the following:
1) Query the customer and orders tables and calculate how many orders the customer has placed in total
2) Then display the number of orders the customer has placed
3) If number of orders is is greater than or equal to 2, display the text: More than 1 order
4) If number of orders is 1, display the text: Only 1 order
I can supply the current php file with the line number where the code is to be inserted, as well as FTP access to a test server.
This should be a fairly quick job as it's mainly a case getting the initial SQL query right, the rest is just displaying the results.
Thanks.
I need a small bit of code written for osCommerce 2.2 that will calculate the number of orders a customer has placed and then display some text on a page.
So the code will do the following:
1) Query the customer and orders tables and calculate how many orders the customer has placed in total
2) Then display the number of orders the customer has placed
3) If number of orders is is greater than or equal to 2, display the text: More than 1 order
4) If number of orders is 1, display the text: Only 1 order
I can supply the current php file with the line number where the code is to be inserted, as well as FTP access to a test server.
This should be a fairly quick job as it's mainly a case getting the initial SQL query right, the rest is just displaying the results.
Thanks.
Gary B.
100% (26)Projects Completed
22
Freelancers worked with
19
Projects awarded
46%
Last project
20 Mar 2018
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies