As it exists now, I have some PHP code set up so a customer can "login" with his/her customer number (job number). But I want to give them the option to use either their number or their email address. I understand the code for 1 option (job number), but am confused about how to offer another option (email).
Here's how my code looks:
if(isset($_POST['submit'])) {
$jobnumber=$_POST['jobnumber'];
$con = mysql_connect("//","//","//");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("//", $con);
$query = "SELECT * FROM customers WHERE job_number='$jobnumber'";
$result = mysql_query($query);
echo "<table class='sample'>";
while ($row = mysql_fetch_array($result)) {
Thanks in advance.