I am trying to update my table t1 which has rows as following :-
- id
- menu
Currently i am having data in it as
id = "1"
menu = "menu1 ,menu2 ,menu3, menu4"
I am using explode method of PHP to get MENU row of my table t1.
$show_data = mysql_query("SELECT menu FROM t1");
$showrow = mysql_fetch_assoc($show_data);
$showmenu = $showrow['menu'];
$pieces = explode(",", $showmenu);
Now I want to delete content menu3 from row MENU ,
Please provide me which query should i use , UPDATE , ALTER or DELETE.
It is better to separate
$menu1 $manu2 $menu3and$menu4implode()them as a single$stringwith\tseparatorInsertit to Mysql.selectthe field from tableexplode()it to separate strings using\tseparator$menu3variable frome being imploded this timeimplode()themUPDATEthe field