Jump to content

Archived

This topic is now archived and is closed to further replies.

timtom3

unsubscribe

Recommended Posts

Hi if I want to remove an item in my database for example an e-mail address for a table using a text box where the user enters there e-mail address then clicks unsubscribe, how would i get the e-mail address to check if its in the database

Share this post


Link to post
Share on other sites
[code]$query = SELECT emailaddressfield FROM mytable WHERE emailaddressfield = 'entered_email_address';
$result = mysql_query($query);
if(mysql_num_rows($result) > 0)
{
      // email address is in DB
}
else
{
     // it isn't in there
}[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.