Question: Before I start, I have looked at other similar questions and done everything on them, yet it still is not working.
I'm creating a register script, and no errors occur, yet none of the submitted data appears in the database.
The database is named 'test' and the table 'users'. 
Here is the form;

```
<body><link rel="stylesheet" type="text/css" href="style.css">
<form action="script3.php" method="get">
<p>First Name:<input type="text" name="first_name" /></p>
<p>Last Name:<input type="text" name="last_name" /></p>
<p>Email: <input type="text" name="email" /></p>
<p>Password: <input type="text" name="pass" /></p>
<input type="submit" name="submit" value="Submit!" />
</form>
</body>
</html>

```

Here is script3;

```
<?php 
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$email = $_REQUEST['email'];
$pass = $_REQUEST['pass'];
DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', '');  
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'test');
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) 
OR die("could not connect");
$query = ("INSERT INTO users (first_name, last_name, email, pass, reg_date) 
VALUES ('$first_name', '$last_name', '$email', SHA1('$pass'), NOW() );")
?>

```

Answer: 
```
 <?php 
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$email = $_REQUEST['email'];
$pass = $_REQUEST['pass'];
DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', '');  
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'test');
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) 
OR die("could not connect");
$query = ("INSERT INTO users (first_name, last_name, email, pass, reg_date) 
VALUES ('$first_name', '$last_name', '$email', SHA1('$pass'), NOW() );")
    // insert this line, it will work
    mysqli_query($query);

```
Dude, you are required to insert only one line.

```
mysqli_query($query,$dbc);

```

and your code is ready now.