Hi Friends
i have some problem in update my dynamic text box value for particular id alone,
i want to update only the 2 column fields into my database,
i have used the below code. i am not able update the fields into my DB. Please help me to solve this issue.
<?php
$bp_approve_qty = $_POST["bp_approve_qty"];
$bp_approve_rate = $_POST["bp_approve_rate"];
$id = $_POST["id"];
$limit = count($bp_approve_qty);
//echo $limit;
for($i=0;$i<$limit;$i++) {
$bp_approve_qty[$i] = mysql_real_escape_string($bp_approve_qty[$i]);
$bp_approve_rate[$i] = mysql_real_escape_string($bp_approve_rate[$i]);
if($_POST['submit']=="Submit")
{
$query = "Update material_indent_req set bp_approve_qty='".$bp_approve_qty."', bp_approve_rate='".$bp_approve_rate."' where id=".$id;
echo $query;
mysql_db_query($database,$q);
$change=$_POST["id"];
}
}
?>