Using PHP with MySQL Part 3 Chapter 9 Using PHP with MySQL Part 3
mysqli_num_rows $r = @mysqli_query ($dbc, $q); // Run the query. // Count the number of returned rows: $num = mysqli_num_rows($r); if ($num > 0) { // If it ran OK, display the records.
view_users.php Script 9.6 on pages 290-1 http://csweb.hh.nku.edu/csc301/frank/ch09/view_users2.php ch09\view_users.php
mysqli_affected_rows “While mysqli_num_rows() function will return the number of rows generated by a SELECT query, mysqli_affected_rows() returns the number of rows affected an INSERT, UPDATE, or DELETE query.”
password.php Script 9.7 on pages 292-4 http://csweb.hh.nku.edu/csc301/frank/ch09/password.php ch09\password.php