This may be rather noobish but I'm gonna ask anyhow. I have a class that inserts into my database. After the insert is finished, I would like to be able to test whether the insert was successful. Can someone tell me what a good way to do this may be?
I call the class like this:
foo = new Myclass('my params');
print_r($foo) returns an object. Again, all I am interested in is testing whether the insert was successful or not.
Thanks!