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
/*[C#]*/ | |
var db = Database.Open("StayInFlorida"); | |
int numBedrooms = Request.QueryString["numBedrooms"].AsInt(); |
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
[{"id":"1","path_file":"\/audios\/file.mp3"},{"id":"2","path_file":"\/audios\/file02.mp3"}][{"id":"2","enunciado":"Comunica\u00e7\u00e3o ( teve objetividade, sabe ouvir, linguagem clara e correta: boa flu\u00eancia verbal)","peso":"2","fk_prova":"2","mt_audios_id":"1"},{"id":"3","enunciado":"Criatividade (desperta o interesse na negocia\u00e7\u00e3o?)","peso":"2","fk_prova":"2","mt_audios_id":"1"}][{"id":"4","enunciado":"Uma questao aqui","peso":"2","fk_prova":"2","mt_audios_id":"2"}] |
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 | |
$variable++; | |
$variable++; | |
echo $variable; | |
?> |
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 | |
$config = array( | |
'port' => 8080, | |
'debug' => false, | |
'allowedOrigins' => null, | |
'IpBlackList' => null, | |
'authAdapter' => 'MgRTC\Session\AuthSimple', | |
'facebook' => array( | |
'appId' => '251017698383358', | |
'secret' => '0ee6bd094ef97478417ef9602232524d' |
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
function getConnection() { | |
$dbhost="localhost"; | |
$dbuser="root"; | |
$dbpass="root"; | |
$dbname="db_name"; | |
$dbh = new PDO("mysql:host=$dbhost;dbname=$dbname;", $dbuser, $dbpass); | |
$dbh -> exec("set names utf8"); | |
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
return $dbh; | |
} |
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
function search($id){ | |
$sql = "SELECT id,value,type FROM mt_type WHERE fk_questao = :id"; | |
try{ | |
$db = getConnection(); | |
$stmt = $db->prepare($sql); | |
$stmt->bindParam('id',$id); | |
$stmt->execute(); | |
$result = $stmt->fetchAll(PDO::FETCH_ASSOC); | |
}catch(PDOException $e){ | |
echo $e->getMessage(); |
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
function search($id){ | |
$sql = "SELECT id,value,type FROM mt_type WHERE fk_questao = :id"; | |
try{ | |
$db = getConnection(); | |
$stmt = $db->prepare($sql); | |
$stmt->bindParam('id',$id); | |
$stmt->execute(); | |
$result = $stmt->fetchAll(PDO::FETCH_ASSOC); | |
}catch(PDOException $e){ | |
echo $e->getMessage(); |
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
{ | |
"cardapio": { | |
"Promocoes": [ | |
{ | |
"id_produto": "1625", | |
"nome": "Atum", | |
"ingredientes": null, | |
"precos": "20", | |
"validade_promocao": [ | |
"segunda", |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int read_line(FILE *in, char *buffer, size_t max) | |
{ | |
return fgets(buffer, max, in) == buffer; | |
} | |
void cadastrarVendedor(){ |
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 | |
$nome = $_POST['nome']; | |
$idade = $_POST['idade']; | |
$data = array( | |
'nome' => $nome, | |
'idade' => $idade | |
); |
OlderNewer