Hi all,
I am using MySQL for the first time.
The reason I am using it is for it to serve as a database for my newsletter system.
In a nut shell, a user on my website signs up by entering their e-mail address and selecting which newsletter their wish to receive (Mens, Mens & Womens, or Womens). PHP then inserts that e-mail address into the relevant list. Then when it comes to to sending out the newsletters, I use the list of e-mail's in my MySQL database.
I have a database (testdb), a table (table1) and three rows (mens, mensandwomens, womens).
When I use the command "select * from testdb.newsletters;", I get this:
What I want to do, is to delete the entry "[email protected]". How would I do this?
ALSO, if I am going the wrong way about doing this, then I would love to hear peoples opinions.
I am using MySQL for the first time.
The reason I am using it is for it to serve as a database for my newsletter system.
In a nut shell, a user on my website signs up by entering their e-mail address and selecting which newsletter their wish to receive (Mens, Mens & Womens, or Womens). PHP then inserts that e-mail address into the relevant list. Then when it comes to to sending out the newsletters, I use the list of e-mail's in my MySQL database.
I have a database (testdb), a table (table1) and three rows (mens, mensandwomens, womens).
+---------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+--------------+------+-----+---------+-------+
| mens | varchar(100) | YES | | NULL | |
| mensandwomens | varchar(100) | YES | | NULL | |
| womens | varchar(100) | YES | | NULL | |
+---------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+--------------+------+-----+---------+-------+
| mens | varchar(100) | YES | | NULL | |
| mensandwomens | varchar(100) | YES | | NULL | |
| womens | varchar(100) | YES | | NULL | |
+---------------+--------------+------+-----+---------+-------+
+-----------------------+-------------------+-------------------+
| mens | mensandwomens | womens |
+-----------------------+-------------------+-------------------+
| [email protected] | NULL | NULL |
| [email protected] | NULL | NULL |
| [email protected] | NULL | NULL |
+-----------------------+-------------------+-------------------+
| mens | mensandwomens | womens |
+-----------------------+-------------------+-------------------+
| [email protected] | NULL | NULL |
| [email protected] | NULL | NULL |
| [email protected] | NULL | NULL |
+-----------------------+-------------------+-------------------+
ALSO, if I am going the wrong way about doing this, then I would love to hear peoples opinions.

Comment