title: Retrieving row from gridview data or mySQL DB and display in PopUp
body: <p><img src="https://i.stack.imgur.com/UaQ7v.png" alt="Current Grid View structure with View Anchor - I want to view a specific row after clicking on View anchor, data should be displayed in popup - javascript"></p>
  
  <p>Current Grid View structure with View Anchor - I want to view a specific row after clicking on View anchor, data should be displayed in popup - javascript</p>
  
  <p>Below is my code. I have already implemented functionality for PHP Grid View, Delete option is implemented at the top with querystring</p>
  
  <p>Now what i want is, After clicking view, it should display javascript popup with all the details of that specific row, and close option</p>
  
  <p>The part which am not getting is
  how to transfer data from php/mysql to javaScript and display it in popup
  `
      
  
  <pre><code>if(isset($_GET['id'])){
      $id = $_GET['id'];
      //$x = 'confirm("Are you sure you want to delete this product")';
      //echo $x;
      mysql_query("DELETE FROM users WHERE id = '$id'");
      //echo "alert('Row Deletion Successful')";
  }
  ?&gt;
  &lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Table Display&lt;/title&gt;
  
      &lt;style&gt;
  table, td, th
  {
  border:1px solid green;
  }
  th
  {
  background-color:green;
  color:white;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;?php $result = mysql_query("SELECT id, CONCAT(title, ' ',  name) as FullName, email, mobile FROM users") or die(mysql_error()); 
              $row_count = 1;
              $row = mysql_fetch_assoc($result);
              echo '&lt;td&gt;&lt;input type="checkbox" /&gt;&lt;/td&gt;';
              echo "&lt;th&gt; Sr. No &lt;/th&gt;";
              foreach($row as $col=&gt;$value)
              {
  
                  echo "&lt;th&gt;";
                  echo $col;
                  echo "&lt;/th&gt;";
  
              }
              ?&gt;
              &lt;th&gt;EDIT&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
  &lt;?php 
  mysql_data_seek($result, 0);
  while($row = mysql_fetch_assoc($result)){
      echo "&lt;tr&gt;";
      echo '&lt;td&gt;&lt;input type="checkbox" /&gt;&lt;/td&gt;';
      echo "&lt;td&gt;" . $row_count ."&lt;/td&gt;";
  
      foreach($row as $key=&gt;$value)
      {
  
      echo "&lt;td&gt;";
      echo $row[$key];
      echo "&lt;/td&gt;";
  }
      $row_count++;
      ?&gt;
  
      &lt;td&gt;
              &lt;a href="users.php?id=&lt;?php echo $row['id']; ?&gt;" onclick="return confirm('Are you sure you want to delete this product ?')" title="VIEW" class="icon-1 info-tooltip"&gt;VIEW | &lt;/a&gt;
              &lt;a href="users.php?id=&lt;?php echo $row['id']; ?&gt;" onclick="return confirm('Are you sure you want to delete this product ?')" name="delete"&gt;DELETE |&lt;/a&gt;
              &lt;a href="users.php?id=&lt;?php echo $row['id']; ?&gt;" title="EDIT" class="icon-5 strong-text info-tooltip"&gt;EDIT &lt;/a&gt;
          &lt;/td&gt;
  
      &lt;?php
  
  
      echo "&lt;/tr&gt;";
  }   
  
  echo "&lt;/table&gt;";
  
  
  ?&gt;
  
  
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;`
  </code></pre>