0) { $update_message = mysql_affected_rows() . " Device record updated."; $updated = 1; } elseif ($rows_updated = '-1') { $update_message = "Device record unchanged. No update necessary."; $updated = -1; } else { $update_message = "Device record update error."; $updated = 0; } ?>