Thank you for visiting this site. If you are looking for web hosting
services, you have come to the right place. Please search my database of
over 2400
hosting companies.
If you need any help, please email me at terence @ hostpulse.com . I
will personally try to reply your email within a day and give you some basic
guidelines, negotiate with a few hosts to offer you good pricing or
answer any hosting related problems that you may have.
mysqli_stmt->affected_rows -- Returns the total number of rows changed, deleted, or
inserted by the last executed statement
Description
Procedural style :
mixed mysqli_stmt_affected_rows ( object stmt)
Object oriented style (property):
class stmt { mixed affected_rows }
mysqli_stmt_affected_rows() returns the number of rows affected
by INSERT, UPDATE, or DELETE query. If the last query was invalid, this function will return -1.
The mysqli_stmt_affected_rows() function only works with queries
which update a table. In order to return the number of rows from a SELECT query, use
the mysqli_stmt_num_rows() function instead.
Return Values
An integer greater than zero indicates the number of rows affected or retrieved.
Zero indicates that no records where updated for an UPDATE/DELETE statement, no
rows matched the WHERE clause in the query or that no query has yet been executed.
-1 indicates that the query has returned an error.
Note:
If the number of affected rows is greater than maximal PHP int value, the number of
affected rows will be returned as a string value.
Web Hosting Showcase
View the web hosting
showcase to find more relevant web hosting choice that will guide you in
selecting a good web hosting company.
This site provide
free reviews of web hosting services from 100 selected companies. There
are over 3000 over website hosting companies on the internet. Please
research these domain hosting services carefully before you sign up with
any. Read articles on web page hosting, web site hosting, domain names,
website speed test, cheap web hosting services, PHP scripts, mysql
database, asp hosting and virtual private server to gain a better
knowledge on domain hosting and cheap web hosting.