timtom3 Posted June 13, 2006 Share Posted June 13, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/11902-unsubscribe/ Share on other sites More sharing options...
ober Posted June 13, 2006 Share Posted June 13, 2006 [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] Quote Link to comment https://forums.phpfreaks.com/topic/11902-unsubscribe/#findComment-45153 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.