Thanks for your quick responses although I'm not exactly sure what they mean. I am really really new with php and am amazed I even have a working login script up.
This is how my code looks right now
<?php
ob_start();
$host="xxx"; // Host name
$username="xxx"; // Mysql username
$password="xxx"; // Mysql password
$db_name="xxx"; // Database name
$tbl_name="xxx"; // Table name
$tbl_name2="xxx"; // Table name
// Connect to server and select databse.
$db1=mysql_connect("$host", "$username", "$password")or die("cannot connect");
$db_select=mysql_select_db("$db_name", $db1)or die("cannot select DB");
$sql="SELECT * FROM $tbl_name WHERE firstname='$myusername' and buyer_email='$mypassword'";
$result=mysql_query($sql, $db1);
$sql="SELECT * FROM $tbl_name2 WHERE login='$myusername' and pass='$mypassword'";
$result=mysql_query($sql, $db1);
As of right now, it will only check the second table for the information.