Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 4
    I've managed to avoid PHP for more than a few years, so I don't know PDO very well, but an "integrity constraint violation error" sounds like "NOT NULL" is a requirement of the database, not of PDO. Commented Jan 28, 2011 at 20:03
  • But why does it work when using a raw mysql function? Commented Jan 28, 2011 at 20:34
  • Possible dupe: stackoverflow.com/questions/1391777/… Commented Jan 28, 2011 at 21:37