mysqli_affected_rows in PHP insert

change this

if(mysqli_affected_rows($con, $insert_member_res)>0)

to

if(mysqli_affected_rows($con)>0)

mysqli_affected_rows only requires connection link object but you passed query object also that was the problem

Leave a Comment