Help with my code

I can not get this code to work:

<?php
if($_GET[“regname”] && $_GET[“regemail”] && $_GET[“regpass1”] && $_GET[“regpass2”] && $_GET[“captcha”])
{
if($_GET[“regpass1”]==$_GET[“regpass2”])
{
$mysql_host = “localhost”;
$defstat = “0”;
$randcode= rand(595,695);
$message = "Thank you for registering with AidenMath.org

To register go to http://www.aidenmath.org/confirm.php?eClient=$_GET[regemail]&eServer=$_GET[regpass1]&eKey=7v8t9jfgbeoruyn0ey78nv098mt30

This email was automatically generated by php.net";
$mysql_database = “aidenmat_test”;
$mysql_username = “aidenmat_test”;
$mysql_password = “Wally2004”;
$conn= mysql_connect($mysql_host,$mysql_username,$mysql_password)or die(mysql_error());
mysql_select_db(“aidenmat_test”,$conn);
$sql=“insert into members (username,email,password,status)values(’$_GET[regname]’,’$_GET[regemail]’,’$_GET[regpass1]’,’$defstat’)”;
$confirmsql=“SELECT * FROM captchas WHERE captcha=’$_GET[captcha]’”;

if(mysql_query($confirmsql,$conn)) {
mysql_query($sql,$conn)
echo(“You have registered sucessfully”);

echo(“Check your email to activate your account”);
mail($_GET[regemail],“Thank You”,$message);
}
else
echo(“Captcha is wrong”);
}
else
echo(“Passwords do not match”);
}
else
echo(“No Data”);
?>

What’s not working on it? What errors are you getting?

Sponsor our Newsletter | Privacy Policy | Terms of Service