Project Detail

PHP Errors need to be fixed  

PHP Errors need to be fixed is project number 493239
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: NickolaS

Budget: $30-250

Created: 08/22/2009 at 2:27 EDT

Bid Count: 18

Average Bid:
$ 85

10/21/2009 at 2:27 EDT

Project Creator: MichaelStiefel
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (1 reviews)

Bid On This Project
 

Description

Instructions

Attached files: database.txt, phpfile.txt

What am I looking for is a modification of an attached php file/continuation without errors.

Database.txt holds the information on the database


Current file-

Holds dropdown box containing list of users

on submit

displays dropdown box with list of dates based on user

on submit

should display

Time: "Time Bought"
Ticker: "Name of Ticker"
Cost: "Bought Shares * Bought Price"
Profit: "(Sold Price * Sold Shares) + other sell price*shares if more than 1 - (buy price*boughtshares)"

Heres the problem you can fix.
Possibly by running a count of current shares left
If all shares not accounted for, display "Still holding"

Percent: "(Sold Cost / Bought Cost) * 100 - 100" rounded to 2 decimals

Again, the problem by running a count or etc. for determining #of buys/sells
If still holding display "NA"

Duration: "Last Sold Time - Bought Time"

Again Based on previous bought shares
e.g. Bought 11am Ticker1 Price=2.3 Shares=1000
Sold 11:15am Ticker1 Price 2.6 Shares=300
Sold 11:30am Ticker1 Price 2.8 Shares=700
So for that transaction, Duration: "11:30am-11am"
If still holding display "NA"


For the attached database.txt,

upon clcking submit for the selected date, the output should be

Time: '09:32:08' Ticker: 'ASFX' Cost: '4380' Profit: '-300' Percent: '-6.85' Duration: '9 min'
Time: '09:32:40' Ticker: 'HTDS' Cost: '2280' Profit: '80' Percent: '3.51' Duration: '8 min'
Time: '09:56:47' Ticker: 'MCET' Cost: '5100' Profit: '300' Percent: '5.88' Duration: '5 min'
Time: '10:03:49' Ticker: 'MCET' Cost: '9500' Profit: '450' Percent: '4.74' Duration: '4 min'
Time: '10:17:49' Ticker: 'MCET' Cost: '50000' Profit: '12250' Percent: '24.5' Duration: '6 min'
Traded: 71260 Percent: 31.78 Profit: 12780

Now these figures do not represent actual market activity, just information based on data from database.txt


Currently the code works fine when 1 unique buy and #sold shares = #bought shares,
the problem is multiple instances of same tickers, and multiple sells
Maybe you will find the way though for loops, just dont limit the # of sells to 1 or 2 or 3 as shown in database.txt


Looking for a timeframe of a couple days max.
Send me a message about any questions

Thanks


Additional files submitted:
database.txt
phpfile.txt

Messages Posted:7 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

80

0 days

08-22-2009 06:31 EDT

Hi, Michael, I'm right here ;)

help

 

140

1 day

08-22-2009 03:53 EDT

let me fixed it. Awaiting for my selection. Kind Regards, Rautella

help

 

125

2 days

08-22-2009 03:11 EDT

VALUEONWEB is a customer-specific service oriented company has got a Professional and creative team. We are the Professional Web Development Company having rich experience in Web design and development. We have expertise and experience in ecommerce site development, flash and animation. Our team can work on HTML,DHTML, JAVA SCRIPT, FLASH , ASP,ASP.NET,PHP,MY SQL, SQL Server, MS SQL. Our Bid includes development , deployment and testing. We are ready to start and send daily reports. we communicate through email,messenger,phone and skype.We will a deliver a professional looking design(s) with proposed functionality to match your concept.

help

 

80

1 day

08-22-2009 02:45 EDT

I can get this work done immediately. Kindly check PM for more details.

help

 

30

1 day

08-22-2009 03:47 EDT

Hi, We are ready to start it. Please check pmb.

help

 

80

2 days

08-22-2009 03:17 EDT

Ready to start. Thanks.

help

 

60

2 days

08-22-2009 05:22 EDT

Hi there, We would be glad in accomplishing your work based on your requirement. It would be our pleasure to work with you and start a fruit full relation at both the end. I request you to, check your PMB. Thanking you in advance. eZee.

help

 

100

7 days

08-22-2009 02:34 EDT

i can do it.

help

 

80

2 days

08-22-2009 02:42 EDT

I can do it very well...

help

 

30

1 day

08-22-2009 03:11 EDT

Please check PM.Thanks.

help

 

30

1 day

08-22-2009 03:26 EDT

Hi sir, let me do it NOW! Thanks, Kimi.

help

 

101

2 days

08-22-2009 02:38 EDT

Please Check PMB

help

 

65

0 days

08-22-2009 03:01 EDT

Hello WE are ProffCoders We read the whole requirements please check PMB Regards ProffCoders

help

 

150

1 day

08-22-2009 03:08 EDT

Dear Sir/Madam, I am an engineering student from the US. Ready to start right away. Please check my private message for more details. Thank you

help

 

60

2 days

08-22-2009 02:57 EDT

(No Feedback Yet)

I can get this work done immediately. Kindly give me for more details

help

 

30

1 day

08-22-2009 04:14 EDT

(No Feedback Yet)

I'll be do this job for you... I'm experience on government web develop

help

 

247

2 days

08-22-2009 04:30 EDT

(No Feedback Yet)

Please click the PMB

help

 

40

10 days

08-22-2009 04:47 EDT

(No Feedback Yet)

To know more you can mail us for further queries at support[at]mztlive.com.

help


    Bid on this Project