<?
$dbconn = mysql_pconnect("localhost","l3lade","******"); //establish connection w/db
$result = mysql_select_db("Hazardnet", $dbconn); //establish connection w/db
$sql = "SELECT * FROM members WHERE username='$username'"; //query to return all results where the username equals the username they signed up with
$result = mysql_query($sql); //send the query to the database
if(empty($username) || empty($passwd) || empty($email))
{
echo "<b>Please fill out all fields</b>";
}
if($result != false){ //make sure there were no errors;database is running
$data = mysql_fetch_assoc( $result );
}else{
echo "<b>There was a problem!</b> ", mysql_error();
}
if(empty($data['username'])){
$result = mysql_query ("INSERT INTO Hazardnet_users (username, passwd, email)
VALUES ('$username', '$passwd', '$email'");
?>
produces the error:
Parse error: parse error, unexpected $ in C:\Documents and Settings\Mark\Desktop\My Web Sites\Hazardnet\check.php on line 21
help me please, i know i suck.