Welcome Guest, Not a member yet? Register   Sign In
ajax won't let me obtain affected_rows
#3

(04-24-2016, 01:18 AM)raghavgarg Wrote: If you are choosing OOP style for mysqli query then you have to use mysqli object to use any method/property of mysqli.

TRY:
$rowsAffected = $mysqli->affected_rows;

affected_rows is a property of mysqli object and not query. You can refer http://php.net/manual/en/mysqli.affected-rows.php for more information.
That looks like how I am already doing it. I've tried it with and without those parenthesis on the end.
Reply


Messages In This Thread
RE: ajax won't let me obtain affected_rows - by cupboy - 04-24-2016, 10:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB