dynamic row values wrongly updated into mysql php

后端 未结 4 1841
长发绾君心
长发绾君心 2021-01-27 10:58

Here i\'m trying to edit & update my dynamic row values using php. This is my edit.php page coding. it fetch the dynamic row datas from mysql perfectly..

$ui         


        
4条回答
  •  礼貌的吻别
    2021-01-27 11:12

    If you have many rows with same VoucherID_Fk UPDATE set data for all this rows. You need have set TariffSlNo to WHERE condition

    $e_tariff = "UPDATE ebvouchertariffs SET 
        TariffDate = '$e_date', 
        TariffParticulars = '$e_particulars', 
        NoOfNights = '$e_noofnights', 
        TariffRate = '$e_rate', 
        TariffPrice = '$e_price', 
        TariffTax = '$e_tax', 
        TariffNetTotal = '$e_nettotal', 
        TariffAddTotal = '$e_totalamount', 
        TariffFinalTotal = '$e_finaltotal', 
        ModifiedOn = NOW() 
    WHERE
        TariffSlNo = '$e_slno' AND VoucherID_Fk = '$uid'";
    

提交回复
热议问题