Question is:
I have a PHP webpage with list of data taken from database.
---------------------------------------
----- ID117 ----- aaa ------ bbb ------
----- ID118 ----- aaa ------ bbb ------
----- ID119 ----- aaa ------ bbb ------
----- ID120 ----- aaa ------ bbb ------
----- ID121 ----- aaa ------ bbb ------
---------------------------------------
All what i need is: by clicking ID120 for example, it will open separate webpage with information from another database WHERE ID = ID120.
EG:
Click ID120:
Another page opened with this info:
ID120
City = UK,
Phone number = 1234234124
and so on....
I have this code:
<html>
<body>
<?php
include 'connect/con.php';
$result = mysqli_query($con,"SELECT * FROM newsvid");
echo "<table border='1'>
<tr>
<th>id</th>
<th>vidTitle</th>
<th>imgCover</th>
<th>vidSD</th>
</tr>";
while($row = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['vidTitle'] . "</td>";
echo "<td>" . $row['imgCover'] . "</td>";
echo "<td>" . $row['vidSD'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
</body>
</html>
I have another database called videoInformation so I need, by clicking ID open another webpage with information from another database where ID = which one was clicked.
Basically I'm not sure where to start. (