What should I replace \'CODE TO VERIFY IF QUERY RESULT ROW IS = 1\' for? I\'ve tried many ways using num_rows but it won\'t work. My PHP code:
You can use:
$stmt=$mysqli->prepare("select `id` from `agahicustomer` where `city`=?"); $stmt->bind_param("s",$cityid); $stmt->execute(); $stmt->store_result(); $stmt->bind_result($id); return $stmt->affected_rows; $stmt->close();