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.

Required fields*

5
  • Pdo rowcount is an easy way. Increment your insert loop and check the number of rows in your table at the end. Commented Mar 1, 2016 at 23:49
  • try mysql_affected_rows() php.net/manual/tr/function.mysql-affected-rows.php Commented Mar 1, 2016 at 23:58
  • @mdemir OP is using mysqli_ not mysql_. Plus, if you're going to reference PHP.net, please use English-based. You meant php.net/manual/en/mysqli.affected-rows.php Commented Mar 2, 2016 at 0:02
  • @Fred-ii- sorry for lang. I wasn't aware. Commented Mar 2, 2016 at 0:24
  • @mdemir No worries. Just thought I would let you know that ;-) Cheers Commented Mar 2, 2016 at 0:33