<table width="100%" border="0" cellspacing="0" cellpadding="3">
<form action="temp.php" method="post" name="frmTemp">
<?

$sql_count="select * from dmail_fields";
//echo $sql_count;
$rec=mysql_query($sql_count);
while($data=mysql_fetch_array($rec))
{

?>
<tr>
<td align="center"><input name="txtValue" type="text" class="textfield" id="txtValue" size="18" value="<? echo $data;?>" readonly="ture" /></td>
<td align="center"><input name="txtChange[]" type="text" class="textfield" size="18" /></td>
</tr>
<? } ?>
<tr>
<td width="50%" align="center">&nbsp;</td>
<td width="50%" align="right"><input type="submit" class="frm_but1" name="Submit4" value="Ok" /></td>
</tr>
</form>
</table>
now i want particular value print in the tem.php page like ph. no, addrress etc.
how it is possible?

plz help me using php code.

Use a unique identifier in the mysql table (Like an index key or an unique key). Then use something in the direction off:

if( ! isset( $_GET[ 'id' ] ) ){ die( 'No ID specified' ); }
$value = mysql_get_gpc() ? $_GET['id'] : addslashes( $_GET['id'] ) ;
mysql_query( "select * from `dmail_fields` where `id`=`$value`" );

That should return you 1 result with the data you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.