Actually i want to make read-only some row in my table of a database .
For Example my table has 3 columns (1.no. (int) , 2. Lenght , 3. Status ) and
6 records (1.[‘1′,’512′,’ok’] , 2.[‘2′,’512′,’ok’] , 3.[‘3′,’512′,’no’] , 4.[‘4′,’512′,’ok’] , 5.[‘5′,’512′,’no’] )
u can see most are same just 3 records are ok and 2 are no those which are ok i need it to make read only means once it status is ok no one can edit that record only read the record.
My script is in PHP and MySQL .
I think you can only lock the tables rather then the rows, so what I suggest you do is create another column called locked which has a 0 or 1 for it’s value and do something like this:
That would be your best method IMO