Your SlideShare is downloading. ×
0
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Fundamentos de  PHP, phpMyAdmin e MySQL (parte 2)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Fundamentos de PHP, phpMyAdmin e MySQL (parte 2)

2,378

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,378
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
59
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Fundamentos de PHP, phpMyAdmin e MySQL (parte 2) Breno Vitorino Seminários III PUC Minas Contagem
  • 2. phpMyAdmin 101
  • 3. Criação de base de dados
  • 4. Alterar charset (UTF-8)
  • 5. Definir colunas
  • 6. Definir chave primária
  • 7. Definir storage (InnoDB)
  • 8. Registro inserido (SQL)
  • 9. Alterar ou remover registro (SQL)
  • 10. SQL (Structured Query Language) Linguagem padronizada para manipulação de ● registros em uma base de dados Quatro tipos básicos de construção: ● SELECT (consulta) – – INSERT (inserção) – UPDATE (alteração) – DELETE (remoção)
  • 11. mysqli 101
  • 12. 1) Abrir conexão $dbc = mysqli_connect('localhost', 'root', ● '', 'portfoliodb'); mysqli_set_charset($dbc, 'utf8'); ●
  • 13. 2) Executar SQL $query = quot;SELECT ...quot;; ● $result = mysqli_query($dbc, $query); ●
  • 14. 3) Processar resultados $row = mysqli_fetch_array($result); ● $mysqli_close($dbc); ●
  • 15. Obrigado! Breno Vitorino http://brenovitorino.wordpress.com

×