Posts by Israel • 163 points
6 posts
-
4
votes1
answer668
viewsA: How to change multiple records of an sql table at once?
update tabela set mensagem = REPLACE(mensagem, 'msg-', 'NOVO TEXTO AQUI OU DEIXAR VAZIO PARA APAGAR') where `mensagem` LIKE '%msg-%'
-
3
votes1
answer668
viewsQ: How to change multiple records of an sql table at once?
Imagine a result of an SQL: ID - NOME- MENSAGEM 1 / israel / msg-olamundo 2 / rafael / msg-olamundo 3 / augusto / msg-olamundo Now I want to do in SQL the same thing that str_replace would do in php…
-
1
votes2
answers1263
viewsQ: Convert a string url to hyperlink
Works for several links but if I put the same 2x link in the string does not work as do? function MontarLink($texto) { if (!is_string ($texto)) return $texto; $er =…
-
0
votes3
answers3421
viewsQ: How to list all posts in a category in Wordpress?
I have a site made in Wordpress where I see his posts on the site, ok? The links work, but I have a category that calls "TIPS". On the page dominio.com/dicas tips posts do not open. How to do this?…
-
0
votes0
answers61
viewsQ: Permantent redirection (301) to addresses without WWW with htaccess
How do I have all addresses that have "https://" redirected to the same address but without the www*? Ex: https://www.meudominio.com/teste redirects to https://meudominio.com/test obs. ONLY HTTPS…
-
1
votes4
answers3185
viewsQ: 301 https protocol redirect to http
I would like to make a 301 redirect (through .htaccess) only on 1 link I have https to http without changing any other server link or protocol. Link https:…