With the MySQL database using php, there are articles on the site, links of this type are index.php?id=1 , that is, it shows the first entry in the table, where id=1 . The output of the article is approximately the code
<?=stripslashes($row6['bodytext']);?> But now there is such a problem - there is a second table in which there are also articles, in the second table there are 3-4 articles that are in addition to the article from the first table. For example, in the first table there is an article with id=45 , in the second table there are articles id=1 , id=2 .
How to make it so that when a person views an article from the first table id=45 , on the page on the side, below or else where there were links to articles from the second table id=1 and id=2 .