如何在javascript中使表行可点击?

时间:2016-08-13 04:21:35

标签: javascript php arraylist

如何让每个表格行可点击进入新页面?是不是可以在javaScript中使用?

 <?php 
   $query = mysql_query("SELECT * FROM instructor") or die(mysql_errno());                                
     while ($row=mysql_fetch_array($query)) {

   echo "
      <tr class='info'>
         <td><img src='".$row['profile_picture']."' width='30' height='30' style='border-radius:50%;'></td>
         <td>".$row['instructor_Id']."</td>
         <td>".$row['firstname']." ".$row['lastname']."</td>
         <td>".$row['age']."</td>
         <td>".$row['sex']."</td>
         <td>".$row['contact_no']."</td>
         <td>".$row['teaching_type']."</td>
      </tr>
                 "; 
       }
     ?>

0 个答案:

没有答案