Commit 2f2ea6f8 authored by rama chandra's avatar rama chandra
Browse files

updated create admin

parent 7adb0305
...@@ -15,7 +15,7 @@ if(isset($_POST['new']) && $_POST['new']==1) ...@@ -15,7 +15,7 @@ if(isset($_POST['new']) && $_POST['new']==1)
$password=$_REQUEST['password']; $password=$_REQUEST['password'];
$ins_query="insert into admins (`username`,`email`,`contactno`,`clgid`,`region`,`clg`,`state`,`password`) values ('$username','$email','$contactno','$clgid','$region','$clg','$state','$password')"; $ins_query="insert into admins (`username`,`email`,`contactno`,`clgid`,`region`,`clg`,`state`,`password`) values ('$username','$email','$contactno','$clgid','$region','$clg','$state','$password')";
mysqli_query($con,$ins_query) or die(mysql_error()); mysqli_query($con,$ins_query) or die(mysql_error());
$status = "New Record Inserted Successfully.</br></br><a href='view.php'>View Inserted Record</a>"; $status = "New Record Inserted Successfully.</br></br>";
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment