<file_sep><?php
        $connect = mysqli_connect("localhost","root","","nextech");
        if ($connect->connect_error) {
            die("Connection failed: " . $connect->connect_error);
        } 
        if ($_SERVER["REQUEST_METHOD"] == "POST") {
        
        $fname=$_POST['firstname'];
        $lname=$_POST['lastname'];
        $s_email=$_POST['email'];
        $c_number=$_POST['contactnumber'];
        $r_number=$_POST['rollnumber'];
        $dep=$_POST['department'];
        $sem=$_POST['semester'];
        $s_psd=md5($_POST['password']);
        $sql = "INSERT INTO studentregistrationdetails(firstname, lastname, email, contactnumber, rollnumber, department, semester, password)
        VALUES('$fname','$lname','$s_email','$c_number','$r_number','$dep','$sem','$s_psd')";
    if ($connect->query($sql) === TRUE) {
        echo "New record created successfully";
    } else {
        echo "Error: " . $sql . "<br>" . $connect->error;
    }       
    }
    $connect->close(); 


?>
<file_sep># frontend-and-backend
this repository contains code written from scratch at both server and user end
<file_sep><!DOCTYPE html>
<html>
<head>
<title>Devslopes - Learn to Code</title>
</head>
<body>
<h1>Welcome to Devslopes!</h1>
<h2>Want to learn to code?</h2>
<h3>Then you have come to the right place!</h3>
<h4>So get started now!</h4>

<p>If you want to learn to code then there is no better place than Devslopes.
    Devslopes is the world's most <b>effective</b> and <i>affordable</i> platform to learn to code.</p>
<p>Also Join our email list to ge awesome and <em>FREE</em> stuff!</p>
</body>
</html>