Jump to content
View in the app

A better way to browse. Learn more.

GGames Fórum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trocando conteúdo das páginas com query no Banco de Dados

Posted
  • Fundador

Trocando conteúdo das páginas com query no Banco de Dados


Imagine a situação, você precisa trocar o telefone de uma empresa em 50 páginas, pode ser também o nome da empresa ou até mesmo um código HTML. Vou explicar como é possível poupar muito tempo. Nesse exemplo irei trocar a cor de diversos botões do site, eram verdes e agora precisam ficar azul. Acesse o PHPMYADMIN, vá em SQL e cole esse código; UPDATE wp_posts SET post_content = REPLACE (post_content, '#4ad575', '#4982C5'); Basicamente ele vai substituir  '#4ad575' por '#4982C5'. Eu uso muito isso para trocar o nome da empresa de um projeto ou substituir telefones. Resultado: 147 itens que não precisei editar manualmente ? 

  • Autor
    This is the hidden content, please
  • Categoria
    This is the hidden content, please
  • Enviado
    14-02-2019 10:45

 

Já visitou nosso Portal de Notícias? Eu garanto que você vai adorar.

  • Views 1.1k
  • Created
  • Last Reply

Featured Replies

No posts to show

Create an account or sign in to comment

https://g.ggames.com.br/topico/2865-trocando-conteudo-das-paginas-com-query-no-banco-de-dados/

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.