rel
何らかの理由で、このテーブルの行に属性を追加する必要があります。私はこれをしましたが、うまくいきません。どうすればいいですか?
<?php
$query = $con->prepare("query");
$query->execute();
while($result = $query->fetch(PDO::FETCH_ASSOC)) {
$id = $res['name'];
echo "<tr[rel = '".$id."']>";
echo "<td>".$res['roll']."</td>";
echo "<td>".$res['name']."</td>";
echo "<td>".$res['dept']."</td>";
}
?>