w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to determine what ID has been clicked to display relevant information? PHP / SQL

You can use a anchor tag for this purpose like

echo "<tr><td><a

and in new page, you can use

$_GET['id'] for getting the id.

Also while echoing html along with php variable try to do like this:

while( $row = mysql_fetch_assoc($query) )
echo "<tr><td><a
echo "<td>".$row['Type']."</td>";
echo "<td>".$row['VNC_Number']."</td>";
echo "<td>".$row['Completion_Date']."</td>";
echo "<td>".$row['Logged_By']."</td></tr>";

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.