Hello,

I've been poking around for a while now and I can't seem to find a way to do this. I'm fairly new to php, and I'm looking for a little help. What I am looking for is very similar to http://www.daniweb.com/web-development/php/threads/316912.

1. User hits "unsubscribe" link in an e-mail
2. User types in their e-mail address
3. A "yes" is put into an "opt out" column corresponding to that users e-mail address in the same row when the user hits submit.

I don't want to have the e-mail deleted - I just want to be able to see a little note that the user has chosen to opt out. Any help, direction, or code snippet would be great. Thank you for your time.

Quite easy, just ensure you grab the opt_out column value for each user when you view them and echo it out, something like

<?php if ($row['opt_out'] == 0) { echo 'Opted Out'; } ?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.