0

<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.

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Anonymusius
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.