First of all, I am sorry that I was unable to reply. I was away for job related trip to Prague
Second, I am sorry, once again that I was unable to make myself clear.
I would to see something like this:
$sn=5;
$result_ofsp = mysql_query("SELECT parid, AES_DECRYPT(knhk,'encrypt') as knhk,knsn,SSN FROM ofsp_table WHERE SSN = AES_ENCRYPT('$SSN','encrypt') AND parid = '$ID'");?>
<?for ($i=1;$i<=$sn;$i++;) {
while ($array_ofsp = mysql_fetch_array($result_ofsp)) {?>
<tr>
<td><input type="text" name="qV_knsn[<?echo $i?>]" id="qV_knsn<?echo $i?>" value="<?echo $array_ofsp['knsn']?>" /></td>
<td><input type="text" name="qV_knhk[<?echo $i?>]" id="qV_knhk<?echo $i?>" value="<?echo $array_ofsp['knhk']?>" /></td>
</tr>
<? $i++; }}?>
because I would like to have the text fields according to the value of $sn, not how many entries I have in db. So it means that if there are 3 entries in db then I would like to have 5 text fields as per $sn value.
Hope that I explained myself 🙂