You can combine HTML and PHP but it helps to read the manual:
WRONG:
<?php
<table><tr><td>some info</td><td>$somevar</td></tr></table>
?>
Above is what you are trying to do. WHATEVER MADE YOU THINK THIS WOULD WORK?
There are 2 ways to make the code above
work.
ECHO or PRINT the table from PHP:
<?php
echo "
<table><tr><td>some info</td><td>$somevar</td></tr></table>
"
?>
or just echo out the variable:
<table><tr><td>some info</td><td><?php echo $somevar; ?></td></tr></table>
Another reason to RTFM:
LEARN THE DIFFERENCE BETWEEN single and double quotes:
$myvar=1234;
<? echo "myvar is $myvar";>
returns
myvar is 1234
<? echo 'myvar is $myvar';>
returns
myvar is $myvar
Also you might consider RTFM about comments:
<?php
//this commments out a single line
this line won't be commented and will throw an error
//even if this single line is commented
?>
Instead:
<?php
//ok no error
//ok no error
//ok no error
?>
or to comment a block
<?php
/*
ok no error
ok no error
ok no error
ok no error
*/
?>