-4

このフィールドを含むphpページがあります:

<a href src='delcat.php'>Delete</a>

Delete キーを押して delcat.php を呼び出し、同じテーブルのフィールドにあるカテゴリ ID を送信したい。誰でも私がこれに到達するのを手伝ってくれますか? ここに私の完全なテーブルコード:

<table border="0" align='center' class="styled-table">
            <tr class="thh">
    <th class="thh">Category Code</th>
            <th class="thh">Category Name </th>
            <th class="thh">Category IMage </th>
            <th class="thh">Edit</th>
    <th class="thh">Delete</th>
            </tr>
    <?php
    for ($counter = 0; $row = mysql_fetch_row ($resultSet); $counter++) {
      print ("<tr align='center' class='trh'>");
      print ("<td align='center' class='tdh'>$row[0]</td>");
      print ("<td align='center' class='tdh'>$row[1]</td>");
      print ("<td align='center' class='tdh'><img src='$row[2]' width='50' height='50'></td>");
      print ("<td align='center' class='tdh' width='50' align='center'><a href ='#'>Edit</a></td>"); 
      print ("<td align='center' class='tdh' width='50' align='center'><a href ='delcat.php'>Delete</a></td>");  
      print("</tr>");       
      } 
4

2 に答える 2

0

これを変える:

<a href src='delcat.php'>

これに:

<a href='delcat.php?categoryid=" . $row[0] . "'>
于 2013-06-27T10:20:03.817 に答える