我有一张这张表,我需要在表格行中获取第二个 TD 的值。我可以用 PHP 做到这一点,如何做到这一点?
这是我的桌子:
<table class = "jshop cart">
<tr class = "jshop_prod_cart odd">
<td class = "jshop_img_description_center">
<a href = "/shopping/index.php/product/view/210/3690">
<img src = "http://localhost/shopping/components/com_jshopping/files/img_products/noimage.gif" alt = "test" class = "jshop_img" />
</a>
</td>
<td style="text-align:left">
FIRST VALUE I NEED
</td>
<td>
1 ден. </td>
<td>
<input type = "text" name = "quantity[0]" value = "1" class = "inputbox" style = "width: 25px" />
</td>
<td>
1 ден. </td>
<td>
<a href = "/shopping/index.php/cart/delete?number_id=0" onclick="return confirm('Навистина сакате да го отстраните?')"><img src = "http://localhost/shopping/components/com_jshopping/images/remove.png" alt = "Отстрани" title = "Отстрани" /></a>
</td>
</tr>
<tr class = "jshop_prod_cart even">
<td class = "jshop_img_description_center">
<a href = "/shopping/index.php/product/view/169/2876">
<img src = "http://localhost/shopping/components/com_jshopping/files/img_products/thumb_3e28bb073e2ac2ca90345955ead6fc58.JPG" alt = "" class = "jshop_img" />
</a>
</td>
<td style="text-align:left">
SECOND VALUE I NEED
</td>
<td>
140 ден. </td>
<td>
<input type = "text" name = "quantity[1]" value = "1" class = "inputbox" style = "width: 25px" />
</td>
<td>
140 ден. </td>
<td>
<a href = "/shopping/index.php/cart/delete?number_id=1" onclick="return confirm('Навистина сакате да го отстраните?')"><img src = "http://localhost/shopping/components/com_jshopping/images/remove.png" alt = "Отстрани" title = "Отстрани" /></a>
</td>
</tr>
</table>