Código:
<?PHP //register.php
include "conn.php";
include "lang-es.php";
if ($_POST){
$CompUser=mysql_query("SELECT username, email FROM vg-users WHERE username='$_POST[user]' OR mail='$_POST[email]'");
if ($CompUser){
echo $Lang["UserRegError"];
}else{
$CompUser="INSERT into vg_users(username,password,email) VALUES(";
$CompUser.="'".$_POST[user].",'";
$CompUser.="'".$_POST[password].",'";
$CompUser.="'".$_POST[email]."'";
$CompUser.=")";
mysql_query($CompUser);
echo $Lang[RegSuccess];
}
}
?>
Amigos,si alguien me da soporte lo agradecere