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.

I'm assuming PHP? I see a couple of potential problems...try this:
1) Picky thing for me, when you are doing SQL, make the SQL key words in ALL CAPS, it makes it easier to read
2) I think your query might be failing due to quoting...regardless, the code i gave you will tell you why it is failing
3) I hope you sanitized your input before calling that...

Not really groking what you were doing at the end, but I did the best I could with what you had...

There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.