This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table ajax (Item_um varchar(15)); | |
insert into ajax (Item_um) VALUES ('Registro 1'); | |
insert into ajax (Item_um) VALUES ('Registro 2'); | |
insert into ajax (Item_um) VALUES ('Registro 3'); | |
insert into ajax (Item_um) VALUES ('Registro 4'); | |
insert into ajax (Item_um) VALUES ('Registro 5'); | |
insert into ajax (Item_um) VALUES ('Registro 6'); | |
insert into ajax (Item_um) VALUES ('Registro 7'); | |
insert into ajax (Item_um) VALUES ('Registro 8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP DATABASE Familia; | |
CREATE DATABASE Familia; | |
USE Familia; | |
CREATE TABLE Familia ( | |
id int(3) NOT NULL PRIMARY KEY auto_increment, | |
nome varchar(30) NOT NULL, | |
idade int(3) NOT NULL, | |
sexo char(1) NOT NULL | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<img class="logo" src="img/galeria/logo1.png"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function conexaoPDO(){ | |
#Iniciando conexão com banco de dados | |
$pdo = new PDO ('pgsql:host=localhost; dbname=desenvolvedor' , 'postgres' , ''); | |
$pdo->setattribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
return $pdo; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop database crudRelacionamento; | |
create database crudRelacionamento; | |
use crudRelacionamento; | |
-- Tabela para armazenamento dos dados (Editora). | |
CREATE TABLE Editora ( | |
idEditora int NOT NULL PRIMARY KEY AUTO_INCREMENT, | |
nome VARCHAR(30) NOT NULL, | |
site VARCHAR(30) NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop database CrudProfissional; | |
create database CrudProfissional; | |
use CrudProfissional; | |
-- Tabela para armazenamento dos dados do Profissional. | |
CREATE TABLE Profissional ( | |
idProfissional int NOT NULL PRIMARY KEY AUTO_INCREMENT, | |
nome VARCHAR(30) NOT NULL, | |
idade VARCHAR(3) NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 - Leitura: | |
- Identação (Seguir os padrões para facilitar a leitura dos scripts); | |
- Comentários (Sempre comentar os scripts de forma compreensível e eficaz, comentar sempre é boa prática!); | |
- Deixar documentado e de forma evidente quaisquer "gambiarra" que fugiu dos padrões. | |
- Na utilização de nomes, rótulos no formato compostos, sempre destacar a letra inicial da segunda palavra em MAIÚSCULO, Exemplo: enderecoProfissional.php (endereco[P]rofissional). | |
2 - Arquivos e diretórios: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset='utf8'> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
</head> | |
<body> | |
<div class="diva"> | |
<div class="cabecalho"> | |
<center><img src="img/crud3.png"/></center> |