Im following a tutorial right now and in it I am building a form to send data to mysql database. In attempt to do error checking on a form in a table. Im getting a parse error eventhough i am entering the code exactly how he is. Here is the code and the parse error will be beneath it. HELP PLEASE FAST!
<?php if($_POST['submit']) { ?>
<table border="0" style="color: red; width:250; margin-top: 5px; border: 1px solid black padding: 2px; font-family: Tahoma; font-size: 12px;">
<?php
$curnum = 0;
$username = $_POST['username'];
$password = $_POST['password'];
$gender = $_POST['gender'];
$byear = $_POST['birth_year'];
if(!$username) {
$curnum ++;
echo "<tr><td>".$curnum.". Please enter a username.</td></tr>"
}
if(!$password) {
$curnum ++;
echo "<tr><td>".$curnum.". Please enter a password.</td></tr>"
}
?>
</table><?php } ?>
*NOTE
Parse error: parse error, expecting ','' or';'' in C:\wamp\www\registerimproved\index1.php on line 83