Posts by Fabio Fila • 446 points
9 posts
-
1
votes2
answers94
viewsA: PHP data sync with Javascript
In JS, only after the return of the first post you start checking every 2 seconds. Then you put an initializer called "loopcheck()" inside the return of the post, see how it was below: $(function ()…
-
7
votes1
answer472
viewsA: php codeIgniter: syntax error, Unexpected '['
Replace the code you say is wrong with this one: $sharedConfig = array( 'region' => $this->region, 'version' => $this->version, 'scheme' => $this->scheme, 'credentials' =>…
-
4
votes1
answer1432
viewsA: How to return a javascript function to an HTML?
Just direct the message using one of the following Jquery codes, both work but with a slight difference see: $("div.nome").html('meu nome é <b>hugo</b>');//a tag <b> é renderizada…
-
1
votes1
answer637
viewsA: Search data from 2 tables - PHP+Codeigniter.
Try this: function getVaga($campo_busca) { $this->db ->select("*") ->from("dados_vaga") ->join("dados_empregador", "dados_empregador.id = dados_vaga.id_empregador")…
-
3
votes3
answers614
viewsA: jQuery check php database field
I imagine your html is like this or something: <form action="gravar.php" method="post" id="formGravar"> <input type="text" class="form-control" name="con_email" id="con_email"…
-
2
votes2
answers351
viewsA: Upload files to different servers
I would think about working with FTP/SFTP. They are very common services on any server and PHP offers full support for them. See the Docs below: http://php.net/manual/en/ref.ftp.php…
phpanswered Fabio Fila 446 -
2
votes1
answer130
viewsA: Explode lines from a textarea and separate them by commas
I made it here and I imagine that’s what you want, see if it meets: $respostas = "teste, teste1, teste2 teste3, teste4"; $lines = explode("\n", $respostas); $i = 0; if ( !empty($lines) ) { $aWords =…
phpanswered Fabio Fila 446 -
0
votes2
answers47
viewsA: When I do the UPDATE it saves in the database correctly, but when I update the page the data disappears from the database
Try to get the posts before working on the update as follows: function checkPosts(){ $retorno = true; $camposParaChecar = array('nome','email','telefone'); foreach($_POST as $key => $val){ if…
-
4
votes3
answers3129
viewsA: How to list the properties of an object in php using foreach?
That would help? <?php class MyClass { public $var1 = 'value 1'; public $var2 = 'value 2'; public $var3 = 'value 3'; protected $protected = 'protected var'; private $private = 'private var';…