mkosmosports Posted December 11, 2007 Share Posted December 11, 2007 Hello, When issuing update or insert sql statements using PDO->execute is there anyway of knowing whether any rows were actually affected? Also, is there anyway execute can return a FALSE boolean? (it says on the www.php.net/pdo site it can, but how?) Thanks. mkosmosports Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2007 Share Posted December 11, 2007 rowCount returns the number of effected rows. Also, is there anyway execute can return a FALSE boolean? (it says on the www.php.net/pdo site it can, but how?) I'm not sure what you mean exactly. It does return true on success or false on failure. Quote Link to comment Share on other sites More sharing options...
mkosmosports Posted December 11, 2007 Author Share Posted December 11, 2007 Hey Thorpe, Thanks for your answer. This is exactly what Im looking for. Nevermind my other question. Thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.