$sql="SELECT * FROM `customer_information_table` WHERE `email`='{email}'";
$result = $db->query($sql);
if($db->error)
{
exit("SQL error.
<a href = './register.php'>return</a>");
}
if($result->num_rows!==0)
{
exit("email address already exists.
<a href = './register.php'>return</a>");
}
Passy 0 Newbie Poster
AndreRet 526 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.