I would like to place a hypertext between 02 tables located on 02 different pages of my site. Until then the code below placed in the 01 table helps me to open the 02nd page but with an empty table. But I am trying to open the line of table 2 which corresponds to the line of table 01 from which I placed the link in my database.
NB:
- the 02 tables are linked by the same foreign key.
- I need only the lines of Table 1 which contain the hypertext to open the same line of Table 2.
- Should we create a new PHP query, on the location of the hyperlink, to include the foreign key of the 02 tables ? Below is the code placed in the cell of table 1 :
<tr>
<td><?php if($row['Supleta']):?><a href="<?=$row['Supleta']?>"><a target=_blank" href="30_33_gnl.php#toto" style="text-
decoration:none"><?=$row['Supleta']?></a><?php else: ?><?php endif; ?></td>
<td><?php echo $row['livpd'];?></td>
<td><?php echo $row['autre'];?></td>
<td><?php echo $row['titre']; ?></td>
</tr>
- Should we create a new PHP query, on the location of the hyperlink, to include the foreign key of the 02 tables ?
Here is the code from table 2
<tr>
<td></td>
<td></td>
<td id="toto"></td>
</tr>
source https://stackoverflow.com/questions/77455162/place-a-hypertext-to-link-02-tables-located-on-02-pages-of-a-dynamic-site
No comments:
Post a Comment