Good afternoon
I am very new to php and I am just trying to display 3 fields from a table, but when I try I continue to get the same message:
syntax error, unexpected T_VARIABLE, expecting ',' or ';'connection.php on line 6
My code is listed below. Any help would be appreciated.
<?php
mysql_connect ("domain.com","alumnidba", "password") or die(mysql_error());
echo "Connected to MySQL<br /><hr />";
mysql_select_db ("alumni") or die (mysql_error());
echo "Connected to the Database<br /><hr />"
$sql = 'SELECT `contact` . `lastname` , `contact` . `firstname` , `contact` . `gradyear` '
. ' FROM contact '
. ' ORDER BY `contact` . `lastname` ASC LIMIT 0, 500 ';
?>