I have a table in database which has only one column and it stores the name of al the projects. I have one registration page which displays all these projects where user can select any . Any changes done on table reflects on my registration page.
User when selects the project and registers then all the information of the user is stored in another table that Database. My problem is if I do any changes in the table with projects name(delete or insert a name), it reflects on the registration page but it does not reflect on the user's database.
For example suppose one user has selected p1,p2 and registered and later if I delete p2 from the database, it does gets deleted from user's database, only its deleted from registration page. I want this change to be reflected everywhere. How do I implement this?
<?php
include('connection2.php');
if(isset($_POST['project'])) {
$pro=implode(',', $_POST['project']);
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$age=$_POST['age'];
$gender=$_POST['gender'];
$username=$_POST['username'];
$username=$_POST['username'];
$password=$_POST['password'];
mysql_query("INSERT INTO test(fname, lname, age, gender, username, password,projects)VALUES
('$fname', '$lname', '$age', '$gender', '$username', AES_ENCRYPT
('$password','.b.'), '$projects')");
}
header("location: registration2.php?remark=success");
mysql_close($con);
?>