what am I doing wrong?

A

Anonymous

Guest
I'm new at this and I can't figure out what I'm doing wrong. The code is:

<?PHP
session_start();
$emp_id = $_SESSION['emp_id']
$dbconn = mysql_connect (localhost, dev_mmr, mmr)
or die('I cannot connect to the database because: ' . mysql_error() );
mysql_select_db(dev_mmrentals, $dbconn);

$result = @mysql_query("SELECT * FROM mmr_users WHERE emp_id='$emp_id'");
$row = mysql_fetch_array($result);

echo "<center><table border=0 cellpadding=0 cellspacing=0><tr><td><center>First Name: ".$row['fname']."";

echo "<br>Last Name: ".$row['lname']."";

echo "<br>Session/emp_id".$row['wmp_id']."</td></tr></table></center>";
?>
and I'm getting this error:

Parse error: parse error, unexpected T_VARIABLE in /home/users/dev/public_html/mmrentals/emp_mmr/index.php on line 4

Can anybody help?

TIA
Roliver
 
I knew it would be something like that. Thank you very much!

roliver
 
Back
Top