I read through the image gallery tutorial here on sitepoint, but right as I start building the prupload form, I get at least 15 syntax errors starting on line 15 and the form won't display, I understand this was built in 2003, but I am still so new to php that I can't find the errors, here is the code from the tutorial:

PHP Code:
<?php    
  
include 'config.inc.php';    
    
  
// initialization    
  
$photo_upload_fields '';    
  
$counter 1;    
    
  
// If we want more fields, then use, preupload.php?number_of_fields=20    
  
$number_of_fields = (isset($_GET['number_of_fields'])) ?    
    (int)(
$_GET['number_of_fields']) : 5;    
    
  
// Firstly Lets build the Category List    
  
$result mysql_query('SELECT category_id,category_name FROM gallery_category');    
  while(
$row mysql_fetch_array($result)) {    
    
$photo_category_list .= <<<__HTML_END    
<option value="$row[0]">$row[1]</option>\n    
__HTML_END
;    
  }    
  
mysql_free_result$result );      
    
  
// Lets build the Image Uploading fields    
  
while($counter <= $number_of_fields) {    
    
$photo_upload_fields .= <<<__HTML_END    
<tr><td>    
  
Photo {$counter}:    
  <
input name="photo_filename[]"    
type="file" />    
</
td></tr>    
<
tr><td>    
  
Caption:    
  <
textarea name="photo_caption[]" cols="30"    
    
rows="1"></textarea>    
</
td></tr>    
__HTML_END;    
    
$counter++;    
  }    
    
  
// Final Output    
  
echo <<<__HTML_END    
<html>    
<
head>    
<
title>Lets upload Photos</title>    
</
head>    
<
body>    
<
form enctype="multipart/form-data"    
  
action="upload.php" method="post"    
  
name="upload_form">    
  <
table width="90%" border="0"    
    
align="center" style="width: 90%;">    
    <
tr><td>    
      
Select Category    
      
<select name="category">    
      
$photo_category_list    
      
</select>    
    </
td></tr>    
    <! - 
Insert the image fields here -->    
    
$photo_upload_fields    
    
<tr><td>    
      <
input type="submit" name="submit"    
        
value="Add Photos" />    
    </
td></tr>    
  </
table>    
</
form>    
</
body>    
</
html>    
__HTML_END;    
?>
so any help I can get with this would be appreciated