php - Displaying Links to individual records -
how show individual record when onclick on name "alex".
<?php echo "<table class='tablesection' border='1'><thead><tr><th><span class='tb_row2'>referee</span></th><th><span class='tb_row2'>date referred</span></th><th><span class='tb_row2'>status</span></th><th><span class='tb_row2'>date approved</span></th></tr></thead>"; $printlist_sql = "select a.name, a.todate table1 left join admin_login b on a.staffid = b.user_id b.admin_id ='userid' order table_id"; echo "<tbody>"; $referral_result = mysql_query($printlist_sql, $link); while ($s_referral_row = mysql_fetch_array($referral_result)) { echo "<tr><td class='tb_row2'>".$s_referral_row['name']."</td>"; echo "<td class='tb_row2'>".$s_referral_row['todate']."</td>"; } echo " </tbody>"; echo "</table>"; ?> my table:
name todate alex 2015-05-22 alice 2015-05-22
<?php echo "<table class='tablesection' border='1'><thead><tr><th><span class='tb_row2'>referee</span></th><th><span class='tb_row2'>date referred</span></th><th><span class='tb_row2'>status</span></th><th><span class='tb_row2'>date approved</span></th></tr></thead>"; $printlist_sql = "select a.name, a.todate table1 left join admin_login b on a.staffid = b.user_id b.admin_id ='userid' order table_id"; echo "<tbody>"; $referral_result = mysql_query($printlist_sql, $link); while ($s_referral_row = mysql_fetch_array($referral_result)) { echo "<tr><td class='tb_row2'><a href="test.php">".$s_referral_row['name']."</a></td>"; echo "<td class='tb_row2'>".$s_referral_row['todate']."</td>"; } echo " </tbody>"; echo "</table>"; ?>
Comments
Post a Comment