Wamp Server database Info

I connected my website to wamp server but when i put in the registration information , the information doesn’t shows up in my database . I made sure everything is in place but i cant find the problem i tried multiple tutorials and nothing helps at all . Does anybody know what i should do ?

This is my code in my register.php file :

<?php
include('db.php');

if(isset($_POST['Register'])) {

    session_start();
    $firstname= @$_POST['First Name'];
    $lastname= @$_POST['Last Name'];
    $username= @$_POST['Username'];
    $password= @$_POST['Password'];
    $password2= @$_POST['Password2'];
    $email= @$_POST['Email'];
    $email2= @$_POST['Email2'];
    $submit= @$_POST['Register'];

     $sql= mysqli_query("SELECT * FROM `users` ('', '$firstname', '$lastname',    '$username', '$password', '$password2', '$email', '$email2')")
        or die ("It didnt work");
}
?>
<html>
<head>
<title>InterFace</title>
<link rel="stylesheet" type="text/css" href="css.css" >
 </head>
<body bgcolor="#E6E6FA">

<nav>
<div id="logo">
<h1> InterFace</h1>
</div>
</nav>

  <form action="#" method="POST">
 <p align="right"><input type="text" name="firstname" size="35" id="First Name" placeholder="First Name" /></p>
 <br></br>
 <p align="right"><input type="text" name="lastname" size="35" id="Last Name"  placeholder="Last Name" /></p>
<br></br>
 <p align="right"><input type="text" name="username" size="35" id="Username"  placeholder="User Name" /></p>
<br></br>
  <p align="right"><input type="password" name="password" size="35"  id="Password" placeholder="Password" /></p>
  <br></br>
 <p align="right"><input type="password" name="password2" size="35"  id="Password2" placeholder="Confirm Password" /></p>
    <br></br>
 <p align="right"><input type="text" name="email" size="35"  id="Email" placeholder="E-mail" /></p>
 <br></br>
 <p align="right"><input type="text" name="email2" size="35"  id="Email2" placeholder="E-mail confirm" /></p>
 <p align="right"><input type="submit" name="reg" value="Register"></p>
</form>

</body>
</html>


Source: wampserver

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.