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 Quote Link to comment Share on other sites More sharing options...
trq Posted February 17, 2010 Share Posted February 17, 2010 And? Quote Link to comment 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']; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.