I have a joomla database with 'jos_content' table containing the details about the articles.
In that table, the column 'attribs' is of TEXT datatype, which contains data about the article properties, like:
show_pdf_icon=0
show_print_icon=0
show_email_icon=0
I am trying to modify the property 'show_print_icon' so that it will have 1, like this:
show_pdf_icon=0
show_print_icon=1
show_email_icon=0
For this, i have written a query that replaces the 'show_print_icon=0' to 'show_print_icon=1' in the column.
UPDATE jos_content set attribs=replace("attribs", "%print_icon=0\nshow_email%",
"%print_icon=1\nshow_email%") where attribs like '%print_icon=0\nshow_email%';
For some reason, after executing this query, i got the column values as empty. I could not understand where did i go wrong. What could be the problem with query?