title: a href not working on my echo php
body: <p>Hi I cant seem to figure this out. I have a table and i wanted to add a delete function here's my code</p>
  
  <pre><code>&lt;?php         
  $delete = "delete";
      $user = $_SESSION['hlbank_user']['user_id'];  
      $sql = "SELECT * FROM tbl_complains where user_id='".$user."' ORDER BY create_date asc ";
      $result = dbQuery($sql);
      while($row = dbFetchAssoc($result)){
  
        if($row['eng_id']==0){
          $engid= 'N/A';
        }else{
      $sqls = "SELECT * FROM tbl_engineer where eid='".$row['eng_id']."'";
      $results = dbQuery($sqls);
      $rows = dbFetchAssoc($results);
        $engid= $rows['ename'];
        }
        echo '&lt;tr class="row1" style="height:25px;"&gt;
              &lt;td align="center"&gt;'.$row['acc_no'].'&lt;/td&gt;
              &lt;td align="center"&gt;'.$row['comp_name'].'&lt;/td&gt;
              &lt;td align="center"&gt;'.$row['comp_desc'].'&lt;/td&gt;
              &lt;td align="center"&gt;'.$row['status'].'&lt;/td&gt;
              &lt;td align="center"&gt;'.'&lt;a href='delete.php?id=".$row['user_id']."'&gt;'.'Delete'.'&lt;/a&gt;'.'&lt;/td&gt;';
              //The problem is in this line. When ever i try putting a href the whole table will not show.
  
        echo '&lt;/tr&gt;';
  
      }
  ?&gt;
  </code></pre>
  
  <p>and here's my delete.php</p>
  
  <pre><code>&lt;?php
  
  if(isset($_GET['user_id'])) {
  $id = $_GET['user_id'];
  
  $con = new mysqli('localhost', 'root', '', 'db_hlbank');
  $sql = 'DELETE FROM tbl_complains WHERE user_id = ?';
  $delete = $con-&gt;prepare($sql);
  $delete-&gt;bind_param('i', $id);
  $delete-&gt;execute();
  
  if($delete-&gt;affected_rows &gt; 0) {
      header('Location: index.php');
  }
  }
  
  ?&gt;
  </code></pre>
  
  <p>Another questions:
  Is there a way to integrate this without calling delete.php? </p>
  
  <p>Thank you very much!</p>