jaiffed Posted February 17, 2010 Share Posted February 17, 2010 hello... i have this script .... mysql_select_db($Db, $link); $query="select * from mem_master where mem_id=$q"; $result= mysql_query($query,$link) or die(""); $fel=mysql_num_fields($result); $nro=mysql_num_rows($result); if($nro>0) { $row=mysql_fetch_array($result); echo '<table border="2">'; echo '<tr>'; echo "<tdcolspan='2'>" . $row['mem_name'] . "</td>"; echo '</tr>'; echo '<tr>'; echo "<td>" . "Balance : " . "</td>"; echo "<td>" . $row['balance'] . "</td>"; echo '</tr>'; echo '</table>'; } it makes grid view of member name and balance like this .......................................................................................... Member ID |Member Name |Balance | ...........................|...................................|.........................| 101 |Andy Link to comment https://forums.phpfreaks.com/topic/192362-link-in-grid/ Share on other sites More sharing options...
trq Posted February 17, 2010 Share Posted February 17, 2010 And? Link to comment https://forums.phpfreaks.com/topic/192362-link-in-grid/#findComment-1013635 Share on other sites More sharing options...
Deoctor Posted February 17, 2010 Share Posted February 17, 2010 hello... i have this script .... mysql_select_db($Db, $link); $query="select * from mem_master where mem_id=$q"; $result= mysql_query($query,$link) or die(""); $fel=mysql_num_fields($result); $nro=mysql_num_rows($result); if($nro>0) { $row=mysql_fetch_array($result); echo '<table border="2">'; echo '<tr>'; echo "<tdcolspan='2'>" . $row['mem_name'] . "</td>"; echo '</tr>'; echo '<tr>'; echo "<td>" . "Balance : " . "</td>"; echo "<td>" . $row['balance'] . "</td>"; echo '</tr>'; echo '</table>'; } it makes grid view of member name and balance like this ................................................. ......................................... Member ID |Member Name |Balance | ...........................|...................................|.........................| 101 |Andy u can do some thing like this echo " <a href="<name_of_php>.php?name=$row['mem_name']" title="<title">anything</a>" after that u can call these values in name_of_php file as $id=$_GET['name']; Link to comment https://forums.phpfreaks.com/topic/192362-link-in-grid/#findComment-1013639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.