Problem in this code

Hi friends,
i will be highly obliged if someone can help me in this code.


	while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
	$i++;
	echo '<tr><td>' . $i . '</td><td>'  
			"<a href='updateform.php?bill_no=" . $row['bill_no'] . "'>" . $row['bill_no'] .  "</a>"		  
		  . $row['bill_no'] . '</td><td>'
		  . $row['ref_no'] . '</td><td>' 		  
		  . $row['bill_date'] . '</td><td>'
		  . $row['insured_name'] . '</td><td>' 
		  . $row['vehicle'] . '</td><td>' 
  		  . $row['vehicle_no'] . '</td><td>' 
		  . $row['date_of_loss'] . '</td><td>' 
		  . $row['date_of_survey'] . '</td><td>' 
		  . $row['type_of_report'] . '</td><td>' 
		  . $row['issuing_office'] . '</td><td>'; 
			if ($row['received_fees'] <=0)
			{
			echo "[ <a href='chequeform.php?bill_no=" . $row['bill_no'] . "'>Pending</a> ]" ;
			}
			else
			echo $row['received_fees'] ;
			echo '</td></tr>';
			}
			echo '</table>';
			}

I am getting error


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\\xampp\\htdocs\\*****l\\regist.php on line 58

where line 58 is


"<a href='updateform.php?bill_no=" . $row['bill_no'] . "'>" . $row['bill_no'] .  "</a>"


Looks like a missing period immediatel before line 58.

Try this:



  echo 
          '<tr><td>' . $i . '</td><td>'   
       
         .   "<a href='updateform.php?bill_no=" . $row['bill_no']  . "'>" 
         .       $row['bill_no'] 
         .  "</a>"           
        ...
        ...
        ...

.

cooool… it worked…

thanks dear :slight_smile: