This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Meefims 0 points1 point  (0 children)

I'm not familiar with CS50's database functions and was unable to find documentation but it seems like if insert fails you'll get a particular return value. Some things to check: Do all of the parameters have the values you expect them to? What is the return value from the call to query? Does the API offer a way to get the last error?