Posts by Renan Araújo • 29 points
11 posts
-
-2
votes3
answers425
viewsQ: Replace Space by Comma
$var = 123 456 789; I need the value of this variable to stay: $var = 123,456,789; Or add a comma after the number: $var = 123, 456, 789; I tried so: str_replace($var," ","")…
-
1
votes1
answer28
viewsQ: Returns value of an array dynamically
I have an array $teste = [1,2,3,4]; <Input type="text" value ="teste[0]" /> //retorna "1" How I could bring all array values into inputs?
-
0
votes1
answer28
viewsA: I cannot declare variable inside id
I managed by making != empty (null) if ($data_aa != null) { // funcionou!!! }
-
0
votes1
answer28
viewsQ: I cannot declare variable inside id
@$c_id = $_POST['numero']; @$data_aa = $_POST['data_aa']; // Data esta vazio if($data_aa == ''){ $var = "oi"; echo "$var"; } If I put the variable $var outside the if(), works normally.…
-
1
votes1
answer38
viewsQ: I can’t run the jquerry loop
I need to create a loop so I can feed it a graphic. while($(".previsto").eq(0).text(),){} I need to take these values eq(0), eq(1), eq(2)... $(".previsto").eq(0).text(), $(".previsto").eq(1).text(),…
-
-2
votes1
answer38
viewsQ: I can’t get the date on the chart
I’m doing the following command: SELECT h.h_dia FROM hh h WHERE h.h_dia = 20180621 GROUP BY h.h_dia
-
1
votes1
answer70
viewsA: My form does not send to the bank
Why don’t you use the Pdo? require_once('../conexao.php'); // Pegando os parametros @$nome_contato = $_POST['nome_contato']; @$email_contato = $_POST['email_contato']; // @$nome_contato = ola; //…
-
-1
votes1
answer1269
viewsQ: How to return the id of the user in the session
require_once('conexao.php'); @$email = $_POST['email']; @$senha = md5($_POST['senha']); // $email = "[email protected]"; // $senha = "12346"; $pdo = $dbconn->prepare("SELECT userid, nome,…
-
-1
votes1
answer178
viewsA: Error in SQL query with PDO
Be able to solve require_once('conexao.php'); // @$email = $_POST['email']; // @$senha = $_POST['senha']; $email = "[email protected]"; $senha = "12346"; $pdo = $dbconn->prepare("SELECT…
-
0
votes3
answers2359
viewsA: Change htdocs from XAMPP to USB stick folder (or use XAMPP on Pendriver)
Follow the step by step Open the shaman Config Apache httpd.conf Use CTRL + F Documentroot "C:/xampp/htdocs" <Directory "C:/xampp/htdocs"> Put the directory you want.…
-
-5
votes1
answer178
viewsQ: Error in SQL query with PDO
I can’t make the query, when I try to make it, I get the error: Erro PDOStatement Object ( [queryString] => SELECT userid FROM usuario WHERE email=:email and senha=:senha ) <?php…