Project Detail

One Page Fix  

One Page Fix is project number 351671
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status: Cancelled

Selected Providers: -

Budget: $30-250

Created: 12/02/2008 at 13:11 EST

Bid Count: 20

Average Bid:
N/A

12/12/2008 at 13:11 EST

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

Bid On This Project
 

Description

I have a site that wa created using PHP,MYSQL and Smarty Templates. My Host upgraded to MYSQL to 5.0.51a on the server and one of my pages that have been working for over 2 yrs suddenly started getting a syntax error while trying to access the page. This should be a quick fix for an experienced programmer. I need someone that will be able to resolve all of the issues with this page in a timely manner. I am no longer in contact with the programmer that helped me create the site so I would like to start a new relationship with a new programmer for some other addons

***** First I was getting this error ****

[2008-12-01 15:00:44] ERROR (0x10000001) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
user.userid,
datecycle,
date_forma' at line 1:db_get_allloan_by_accountid:SELECT ,
user.userid,
datecycle,
date_format(lastmodifydatetime,'%Y-%m-%d') as lastmodifydate,
CONCAT_WS(' ', firstname, lastname) as username,
CONCAT('$',FORMAT(loanamount,2)) as loanamount,
paytimes,
times,
CONCAT('$',FORMAT(loanamount/times,2)) as average,
reason
FROM loan, user
LEFT JOIN
(SELECT COUNT(*) as paytimes,
loanpayid
FROM saving
WHERE savingtype='loan payment'
and accountid='2'
and status='normal'
GROUP BY loanpayid) paytotal
ON paytotal.loanpayid=loan.loanid
WHERE datecycle>='2008-01-01'
and datecycle<='2008-12-01'
and loan.accountid='2'
and user.accountid='2'
and loan.status='normal'
and loan.userid=user.userid
ORDER by lastmodifydatetime DESC;


********************Now I get this error ************************


[2008-12-01 17:52:48] ERROR (0x10000001) Unknown column 'loan.loanid' in 'on clause':db_get_allloan_by_accountid:SELECT loanid,
user.userid,
datecycle,
date_format(lastmodifydatetime,'%Y-%m-%d') as lastmodifydate,
CONCAT_WS(' ', firstname, lastname) as username,
CONCAT('$',FORMAT(loanamount,2)) as loanamount,
paytimes,
times,
CONCAT('$',FORMAT(loanamount/times,2)) as average,
reason
FROM loan, user
LEFT JOIN
(SELECT COUNT(*) as paytimes,
loanpayid
FROM saving
WHERE savingtype='loan payment'
and accountid='1'
and status='normal'
GROUP BY loanpayid) paytotal
ON paytotal.loanpayid=loan.loanid
WHERE datecycle>='2008-01-01'
and datecycle<='2008-12-01'
and loan.accountid='1'
and user.accountid='1'
and loan.status='normal'
and loan.userid=user.userid
ORDER by lastmodifydatetime DESC;

Messages Posted:0 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

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project