Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
104
rated 0 times [  105] [ 1]  / answers: 1 / hits: 11256  / 5 Years ago, thu, january 31, 2019, 12:00:00

This must be a very easy and simple but im finding it hard to get it done.



I have a list of rows with 6 Column which shows data from mysql. I would like to make each row clickable instead of cell which opens a new url in new tab.



Here is the structure.



<tr> <a target=_ href=https://www.google.com>



<td style=text-decoration: underline; font-size: 15px;> </td>
<td><?php echo $row['district']; ?></td>
<td><?php echo $row['program']; ?></td>
<td><?php echo $row['gender']; ?></td>
<td><?php echo $row['yoa']; ?></td>
<td><?php echo $row['email']; ?></td>


</a></tr>


Above Method Don't work.
Any Help is appreciated


More From » jquery

 Answers
0

Try this (without JS):





        <tr>
<td style=text-decoration: underline; font-size: 15px;></td>
<td>
<a href=http://google.com>
<div style=height:100%;width:100%>
1<?php echo $row['district']; ?>
</div>
</a>
</td>

<td>
<a href=http://google.com>
<div style=height:100%;width:100%>
2<?php echo $row['program']; ?></td>
</div>
</a>
<td>
<a href=http://google.com>
<div style=height:100%;width:100%>
3<?php echo $row['gender']; ?>
</div>
</a>
</td>
<td>
<a href=http://google.com>
<div style=height:100%;width:100%>
4<?php echo $row['yoa']; ?>
</div>
</a>
</td>
<td>
<a href=http://google.com>
<div style=height:100%;width:100%>
5<?php echo $row['email']; ?>
</div>
</a>
</td>




[#9176] Tuesday, January 29, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jimmieo

Total Points: 515
Total Questions: 102
Total Answers: 110

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
;