-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrigida codificação do banco de dados
- Loading branch information
Showing
9 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
Binary file not shown.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
25 changes: 25 additions & 0 deletions
25
src/ofertas/sources/schemas/default-schema-for-ofertas.php~
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
$ofertas = "CREATE TABLE IF NOT EXISTS rs_ofertas ( | ||
id int unsigned auto_increment primary key, | ||
mes varchar(255) COLLATE utf8_unicode_ci, | ||
ciclo varchar(255) COLLATE utf8_unicode_ci, | ||
ativa int(1), | ||
data_cadastro timestamp | ||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"; | ||
|
||
@mysql_query($ofertas); | ||
|
||
$imagens = "CREATE TABLE IF NOT EXISTS rs_imagens_ofertas ( | ||
id int unsigned auto_increment primary key, | ||
id_oferta int unsigned, | ||
imagem text | ||
)"; | ||
@mysql_query($imagens); | ||
|
||
$popularTabela = "insert into ofertas set mes='Setembro', ciclo='2', data_cadastro='2012-09-28'"; | ||
|
||
for($cont = 0; $cont < 10; $cont++) | ||
{ | ||
//mysql_query($popularTabela); | ||
} |
This file contains 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
This file contains 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