-3

While Runnung the code its throwing error Can anybody helpme out

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\moduletwo\personal_view.php on line 64

code

                <div class="table-responsive">
            <table class="table">
<tbody>
    <tr>
      <th>Sap Id :</th>
        <td><?php echo ". $row['sap_id'] .";?></td> //line 64

    </tr>
    <tr>
      <th>First Name</th>
        <td><?php echo ". $row['first_name'] .";?></td>
    </tr>

1 Answers1

0

You have declared the variables as strings. Check the following:

<tbody>
    <tr>
      <th>Sap Id :</th>
        <td><?php echo $row['sap_id'];?></td> //line 64

    </tr>
    <tr>
      <th>First Name</th>
        <td><?php echo $row['first_name'];?></td>
    </tr>

Variables should not be within ".." , strings should.

Frank W.
  • 777
  • 3
  • 14
  • 33