16.01.2012, 21:50
Hey all, im making, like you announced before, a game server control panel, but im making the "change password and e-mail section"
And i do not know why, the code is not deleting the data on the mysql database.
This is my code:
Any help for this?
Thank you.
And i do not know why, the code is not deleting the data on the mysql database.
This is my code:
PHP код:
$query1 = "DELETE FROM samp WHERE password = ('$password')";
$result = mysql_query($query1);
$query2 = "DELETE FROM samp WHERE email = ('$email')";
$result = mysql_query($query2);
// now we insert it into the database
$insert = "INSERT INTO samp (password, email)
VALUES ('".$_POST['email']."', '".$_POST['password']."')";
$add_member = mysql_query($insert);
Thank you.