The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> DELETE not working in database
post Sep 20 2017, 07:40 AM
Post #1

Advanced Member

Group: Members
Posts: 213
Joined: 30-September 14
Member No.: 21,611


I have solved error 1044. In my script, I have the following lines:

$sth = prepare('DELETE FROM subscribers WHERE emailaddress = :Email');

$sth -> bindValue(':Email', "%{$Email}%");
$sth -> execute();

When I execute the above there is no error but the record is still in the database!

Can anyone help?


Adrian :shades: Attached File  Unsubscribe.php ( 1.56k ) Number of downloads: 1350
Attached File  unsubscribe1.php ( 2.03k ) Number of downloads: 1384
Attached File  Sorrytoseeyougo.html ( 1.02k ) Number of downloads: 1316
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 24th July 2021 - 10:21 AM