Jump to content

link in grid


jaiffed

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.