Here is my problem, I first show 4 edit boxes, loginid, password , firstname and lastname out of which only 2 boxes are used for input, loginid and password, so I show the other two edit fields as blank name=\'fname\' value=\'\'
now after I fetch the data from the db, i want to bind it to the columns, I tried using the html code after the php code and inside the php code like this but this creates 2 more boxes, how do i bind it to the ones previuosly created...
<?php
if (isset($getinfo)) {
$db = mysql_connect(\"localhost\",\"root\",\"psswd\");
mysql_select_db(\"test\",$db);
$query = \"Select * from tblmembers where loginid = \'$login\' AND passwd = \'$pw1\'\";
$result = mysql_query ($query) or die (\"Select Query failed\");
$num_results = mysql_num_rows($result);
$row = mysql_fetch_array($result);
<table width=100% border=0>
<tr><td width=30% align=right>First Name:</td>
<td width=70%><input type=text name=\'fname\' value=\'<? echo ($row[\"Fname\"]); ?>\' size=10 maxlength=50 >
Last Name: <input type=text name=\'lname\' value=\'<? echo ($row[\"Lname\"]); ?>\' size=10 maxlength=50 ></td></tr>
<tr><td colspan=2></td></tr><p></td></tr>
}
?>