Monday, June 22, 2009

How to Retrieve the Number of Rows Affected in a PHP/MySQL Query

I have to admit I am a convert form Perl to PHP. For many years I thought Perl was better, but then I started using PHP more and more when I began developing more advanced websites. I won't go into anything advanced in this tutorial, but I did want to give a step by step account as to how to return the number of rows affected when a MySQL query is run in PHP. In Perl it would be $DBI::rows will give you the number of rows, in PHP it is a bit different, but the concept is the same.


http://www.ehow.com/how_5111199_retrieve-rows-affected-phpmysql-query.html

0 comments: