Assim podemos te mostrar melhor como fazer os joins.
- hbm likes this
Posted by André Manoel on 05/01/2011, 15:42
Posted by André Manoel on 05/01/2011, 10:24
Posted by André Manoel on 03/01/2011, 20:58
<select name="combo" onchange="troca_pg( this.value )"> <option value="0">Selecione uma página</option> <option value="include/frm/frm_paginicial.php">Principal</option> </select> <!-- Fechar a div antes da tag script //--> <div id="chamar"></div> <script type="text/javascript"> function troca_pg(v){ $.ajax({ type: "POST", url: v, success: function(resposta){ $("#chamar").html(resposta); } }); } </script>
Posted by André Manoel on 16/12/2010, 14:16
Posted by André Manoel on 09/12/2010, 10:17
<?php $ip = getenv("REMOTE_ADDR"); //Pega o IP $data = date("d/m/Y - g:i:a"); //Pega a Data e Horário $db = "doougcoc_ips"; //Insere Variável do BD $con = mysql_connect('10.10.10.3', 'doougcoc_ips', ''); //Abre conexão com o Servidor * CONEXÃO OK * mysql_select_db($db,$con); //Seleciona o Banco de Dados $query = "INSERT INTO ips (ip, data) VALUES ('$ip', '$data')"; //Insere o IP e a Data em VarChar 16 e VarChar 20 $consulta = mysql_query($query); //Insere a Consulta if ($consulta){ echo "O IP $ip foi gravado com Sucesso!"; } else { echo "Erro: " . mysql_error(); } mysql_close($con); ?>
Posted by André Manoel on 09/12/2010, 10:14
Posted by André Manoel on 07/12/2010, 09:13
Posted by André Manoel on 25/11/2010, 10:11
Posted by André Manoel on 19/11/2010, 13:27
Posted by André Manoel on 18/11/2010, 14:10
Posted by André Manoel on 18/11/2010, 14:01
Posted by André Manoel on 11/11/2010, 10:48
CKEDITOR.instances.id_da_textarea.getData();
$forms = $('form') // pega o valor das variaveis no tag form $forms.bind('submit', function(){ var $button = $('button',this).attr('disabled',true); var params = $(this.elements).serialize(); // serialize pega todos os dados inseridos no formulário var texto = CKEDITOR.instances.id_da_textarea.getData(); var self = this; $.ajax({ type: 'POST', url: this.action, data: { dados:params, txt_ck:texto }, beforeSend: function(){ // antes de enviar // mostro na DIV $('#mensagem').html("Carregando..."); }, //beforeSend: function(){ success: function(txt){ // ativa o botão usando a função attr() $button.attr('disabled',false); $('#mensagem').html(txt); //self.reset(); // limpa as variáveis }, // success: function(txt){ // se acontecer algum erro é executada essa funcção error: function(txt){ $('#mensagem').html(txt) } // error: function(txt){ }); // $.ajax({ return false; });
Posted by André Manoel on 04/11/2010, 13:18
Posted by André Manoel on 01/11/2010, 12:51
Posted by André Manoel on 30/10/2010, 12:04
Community Forum Software by IP.Board
Licensed to: Webmasters Online