出于某种原因,我需要在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>";
}
?>