In my db, I have a column called Range_ids
, which inserts IDs using the serialize
function. These IDs stay as an array, the problem is how I can make a DELETE
of the specific ID within the column.
//Usando a função serialize eu insiro esses ids 1052,1053..... em serie
+------------+----------+--------------------------------------------+
| id | nome | Range_ids |
+------------+----------+--------------------------------------------+
| 01 | Prod1 | a:2:{i:1052;s:4:"1052";i:1053;s:4:"1053";} |
| 02 | Prod2 | a:2:{i:1052;s:4:"1052";i:1053;s:4:"1053";} |
| 03 | Prod3 | a:2:{i:1052;s:4:"1052";i:1053;s:4:"1053";} |
+------------+----------+--------------------------------------------+
The problem is how do I delete a specific ID on the particular line.
Example: I want to remove the number 1052 from column range_id
on line 1
//Precisaria de Algo assim
<a href="del.php?id_range=1052">Deletar</a>