<html>
<head>
<title>Register Account</title>
</head>
<body>
<?php
$objConnect = mysql_connect("localhost","root","meido") or die("Error Connect to Database");
$objDB = mysql_select_db("pepsikungza");
#check USER
$chkquery = mysql_query("SELECT Name FROM players WHERE Name='".$_POST['txtName']."' ");
if(mysql_num_rows($chkquery))
{
include "problem.php";
exit();
}
$query = mysql_query("INSERT INTO players set Name='".$_POST['txtName']."',Password='".$_POST['txtPassword']."',Port='".$_POST['txtPort']."' ");
if ($query)
{
include "check.php";
}
else
{
echo "Error Save [".$strSQL."]";
}