If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

checking the database

Hi,

I'm a front end developer/designer who has been thrust into the position of some backend developing. I'm in a bit of a time crunch and could use some help/direction/input on some code.

I'm working on a photo contest site and I need the votes for an image to cost a credit. The voting and credits are all set up, I just need the voting to check the database to see if the logged in user has credits to vote, if so, then reduce their credits by 1 and complete the vote.

I should note this is not my code. I've never done any javascript/ajax coding before. My programmer had done this on a previous version of the site, but he quit and then the site went all haywire and I had to reinstall components which erased what he had done.