in reply to Re: Mysql error near values(
in thread Mysql error near values(

Is there a syntax error in yoru code? I C/P'd and the whole thing went nuts on me.

I took a quick look on insert on duplicate key but I want the opposite of what it does. From what I read, it'd make a duplicate of it if it's found. I'd only want to insert IF the column "url" was not found in the first place.

Thanks.

Replies are listed 'Best First'.
Re^3: Mysql error near values(
by graff (Chancellor) on Feb 05, 2006 at 14:40 UTC
    I C/P'd and the whole thing went nuts on me.

    When you did that, were you careful to remove all the "+" characters that had been inserted by PM's own code-line-wrap logic?

    It looks like reneeb was not so careful about this, because that post includes  total += total +1 (where the first "+" had been added by PM line-wrapping).

    BTW, "went nuts" doesn't sound like the kind of error code that I could look up and help you with. If you don't actually look at the content of the error report, and don't show us what it is, how do you expect to fix the error?

Re^3: Mysql error near values(
by reneeb (Chaplain) on Feb 05, 2006 at 07:43 UTC
    Any error messages??