php – Is it possible to keep the formatting of the text of a textarea when inserting it into MySQL and retrieving it?

Question: I am making a website that has a news section. The page will have an administrative sector in which people (with almost no knowledge of computers) will write news. The idea is that the news is formatted (by format I mean line breaks). How can I do that? Basically …

php – Is it possible to keep the formatting of the text of a textarea when inserting it into MySQL and retrieving it? Read More »

python – Capture the WHERE clause of an SQL query

Question: I need to capture only the where clause of several queries to analyze the filters used. For example: select “DIM_1”.”col1″, “DIM_2”.”col2″ , “DIM_3”.”col3″ , “DIM_4”.”col4″ , “FAT_1”.”col5″ from “FAT_1”, “DIM_1”, “DIM_2”, “DIM_3”, “DIM_4” where “DIM_1”.”col1″ IS NOT NULL AND “DIM_2”.”col2″ LIKE (‘SUCCESS’) AND “DIM_3”.”col3″ BETWEEN 20161213 AND 20161222 AND …

python – Capture the WHERE clause of an SQL query Read More »

jquery – Running a script through the 'name' attribute doesn't work

Question: Follow the code: <select class=”form-control” name=”dd_medidaAplicada” id=”dd_medidaAplicada”> <option value=”0″></option> <option value=”cancelada”>Advertência Cancelada</option> <option value=”escrita”>Advertência Escrita</option> <option value=”verbal”>Advertência Verbal</option> <option value=”dispensa”>Dispensa por Justa Causa</option> <option value=”suspensao”>Suspensão</option> I want to run a script every time selected item is changed: $(“input[name=dd_medidaAplicada]”).on(‘change’, function() { alert( this.value );}) However, through the name attribute I …

jquery – Running a script through the 'name' attribute doesn't work Read More »

javascript – What would be a good way to apply the events: onMouseOver and onMouseOut, for all img tags?

Question: I need this function to be automated so that it applies to all images built on the HTML document without any exception Code function aumenta(obj) { obj.height = obj.height * 2; obj.width = obj.width * 2; } function diminui(obj) { obj.height = obj.height / 2; obj.width = obj.width / …

javascript – What would be a good way to apply the events: onMouseOver and onMouseOut, for all img tags? Read More »

Scroll to Top
AllEscort