I'm getting this error:
Parse error: parse error, unexpected T_VARIABLE in location-of-file on line 39
Change the part in bold of course, here are the lines around the error:
$results = mysql_query("SELECT ID FROM tc_users WHERE email = '$tc_email' OR family_name = '$tc_family'", $tc_mysqlcon)
or die("Invalid query: " . mysql_error());
$rowcheck = mysql_num_rows($results);
if (0 != $rowcheck)
{ $tc_dbcheck = 0; }
else
{
$results2 = mysql_query("SELECT * FROM tc_users_temp WHERE email = '$tc_email' OR family_name = '$tc_family'", $tc_mysqlcon)
$rowcheck2 = mysql_num_rows($results2);
if (0 != $rowcheck2)
{ $tc_dbcheck = 0; }
else
{ $tc_dbcheck = 1; }
}
What I'm trying to do is check two tables for values when someone registers.
Help with the error and/or code tips would be appreciated.