I have a teamnews Table: 
And another table called team:

The values in teamnews table are predetermined before a user signs into the site.
Lets say when a user(teamName) signs in I want to update the teamID row where NewsID = 1
And create a relationship so that if I eventually delete the user(teamName) the teamID value in the teamNews table is reset to zero.
Is this possible?
Please bare in mind I am using phpMyAdmin, so I am not entirely familiar with advanced SQL terms.
When I try to do this I get and error: 
Here’s the error:

You need to specify a FOREIGN KEY. You can add it in by running this command:
This sets up a formal relationship between the tables using the foreign key. The
ON DELETE SET NULLis the part that is important to you. This says that whenever any item in the referenced table (teamin this instance) is deleted, then all rows in this table that had that team id should set that field to null — exactly what you’re looking for.Be aware that this will only work if you are using the
InnoDBdatabase engine (not theMyISAMengine). You can probably change that through phpmyadmin somewhere (I’m not familiar with phpmyadmin so I can’t help you on the details).Also be aware that for this to work, MySQL must actually be able to “SET NULL” — the field containing the foreign key with this constraint can’t be set to “NOT NULL” or it will fail with an error saying to “check data type”.