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
$arr = array(1,2,3); | |
foreach($arr as $key=>$value) | |
{ | |
echo 'Esse é o indice ' .$key. 'esse é o valor do indice ' .$value; | |
} | |
$arr = array('n1' =>1,'n2'=> 2,'n3'=>3); | |
foreach($arr as $key=>$value) |
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
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 | |
Connection Keep-Alive | |
Content-Length 764 | |
Content-Type text/html | |
Date Tue, 26 Feb 2013 18:11:27 GMT | |
Expires Thu, 19 Nov 1981 08:52:00 GMT | |
Keep-Alive timeout=5, max=100 | |
Location ../view/cadastrar.php?user=valido&op=arquivo&acao=inserir&status=ok | |
Pragma no-cache | |
Server Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 |
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 | |
class DesvioPadrao | |
{ | |
private $amostra; | |
public function __construct($amostra) | |
{ | |
$this->amostra = explode(',', $amostra); | |
} | |
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
$('#status').click(function () { | |
var status = $('input:radio[name=status]').val(); | |
alert(status); | |
}); |
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 | |
while($r = mysql_fetch_array($sql)) | |
?> | |
<div class="menu"> | |
<input type="hidden" name="id_pedido" id="<?php echo $r['id']; ?>" value='<?php echo $r['id']; ?>'> | |
<input type="radio" name='status' class='status' value="feito" checked="checked"> | |
</div> | |
<?php } ?> |
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
$.ajax({ | |
type :'post', | |
url :"<?php echo base_url('controllerSistema/C_app/pedido/');?>", | |
data : 'status='+status+ '&id='+id, | |
dataType : 'html', | |
success : function(result){ | |
alert(result); | |
} | |
}); |
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 | |
class Usuario | |
{ | |
private $nome; | |
private $contato; | |
public function __construct($nome) | |
{ | |
$this->nome = $nome; | |
} |
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 | |
@header("Content-Type: text/html; charset=UTF-8",true) ; | |
mysql_connect('localhost', 'root', '') or die ("ERRO DE CONEXAO"); | |
mysql_select_db('bd_teste'); | |
mysql_query("SET NAMES 'utf8'"); | |
mysql_query('SET character_set_connection=utf8'); | |
mysql_query('SET character_set_client=utf8'); | |
mysql_query('SET character_set_results=utf8'); |
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 | |
class ItensVenda | |
{ | |
private $qtd, $itens; | |
public function __construct() | |
{ | |
} | |
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 | |
class ItensVenda | |
{ | |
private $qtd, $itens; | |
public function __construct() | |
{ | |
} | |
OlderNewer