Yes. When an insert succeeds, the number of rows affected is 1. When it doesn't that number is 0.
http://php.net/manual/en/function.my...ected-rows.php
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
|