How To Add Rel Attribute To Tr Of Table
I need to add rel attribute to the row of this table for some reason. I did this but it doesnt work. How should I do it? prepare('query'); $quer
Solution 1:
Use echo '<tr rel="'.$id.'">';
echo
outputs HTML code; <tr[rel=whatever]>
is incorrect HTML.
Solution 2:
$id = $res['name'];
echo"<tr rel = '".$id."'>";
echo"<td>".$res['roll']."</td>";
echo"<td>".$res['name']."</td>";
echo"<td>".$res['dept']."</td>";
Post a Comment for "How To Add Rel Attribute To Tr Of Table"