can u check my codes and tell me whats wrong because for some reason it wont add records to my database, im using phpadmin v4.23 here are my codes
<htmL>
<body>
<form action="insert.php" method="post">
First Name: <input type="text" name="first"><br>
<input type="Submit">
</form>
</body>
</html>
here are my php codes
<?
$username="root";
$password="";
$database="trial";
$first=$_POST['first'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO name VALUES ($first)";
mysql_query($query);
mysql_close();
print($first);
?>