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
<?php | |
//no login, o id do aparelho é enviado ao banco | |
if (isset($post['pushid'])) { | |
//insere no banco o id do aparelho | |
$query = "UPDATE login SET push_id = '" . $post['pushid'] . "' WHERE id_login = " . $usuario->id_login; | |
$push_conn->query($query); | |
//isso é opcional, é para atualizar no site do onesignal o grupo do usuário | |
$playerID = $post['pushid']; | |
$fields = array( |
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
create table aluno ( | |
cd_aluno int identity not null, | |
nm_aluno varchar(100) not null, | |
email varchar(100) not null, | |
constraint pk_aluno primary key(cd_aluno) | |
) | |
go | |
create table avaliacao ( | |
cd_avaliacao int identity not null, |