mysql_connect($servername,[COLOR=red]$username[/COLOR],[COLOR=red]$password[/COLOR] );
$query = "SELECT * FROM personal_information WHERE username='[COLOR=red]$username[/COLOR]' AND password='[COLOR=red]$password[/COLOR]'";
The other thing you want to be careful of is using $username and $password for both your connect variables, and your query variables...
You may want to change your connect variables to something like $db_username and $db_password... to avoid confusion. You know, something more like:
mysql_connect($servername,[COLOR=red]$db_username [/COLOR],[COLOR=red]$db_password[/COLOR] );
$query = "SELECT * FROM personal_information WHERE username='[COLOR=red]$username[/COLOR]' AND password='[COLOR=red]$password[/COLOR]'";
Of course, make sure you make the change in your connect.inc.php file too.
Lastly, if you are POSTING the variables through a form, you may want to change your query to fetch the variables out of the POST array, just in case your REGISTER GLOBALS is OFF in your php.ini file. You know, something along these lines:
mysql_connect($servername,[COLOR=red]$db_username [/COLOR],[COLOR=red]$db_password[/COLOR] );
$query = "SELECT * FROM personal_information WHERE username='".[COLOR=red]$_POST['username'][/COLOR]."' AND password='".[COLOR=red]$_POST['password'][/COLOR]."'";