Posts by Alison Walker • 114 points
9 posts
-
1
votes2
answers42
viewsA: Problem searching for BD - JSF specific columns
Go back like this for DAO, it solves the problem: public List<Pessoa> listaPessoa(String status) { Query query = null; try { query = entityManager.createQuery("SELECT s.id, s.celular, s.cpf,…
-
2
votes3
answers93
viewsA: Open Multiple Programs at Once CMD
1° Open CMD. 2° Type in: FOR /L %V IN (1 1 5) DO start chrome %V It will open 5 pages in Chrome.
-
1
votes1
answer101
viewsA: PHP and Mysql Login Validation Problem
Try using the following form of connection to test: <?php session_start(); include("conexao.php"); $usuario = $_POST['usuario']; $senha = $_POST['senha']; $senha = md5($senha); $selec =…
-
0
votes2
answers48
viewsA: LIKE query in Mysql
I think this might help: SELECT * FROM accounts WHERE account_name LIKE '7%TERAÇÃO%'; // COMEÇA COM N° SELECT * FROM accounts WHERE account_name LIKE 'Ç%TERAÇÃO%'; // COMEÇA COM CARACTER ESPECIAL…
mysqlanswered Alison Walker 114 -
0
votes1
answer65
viewsA: PHP and Database does not update, use of UPDATE - SET - WHERE
Just make it work: <?php $id = $_POST['id']; //Variável de controle. $nroproduto = $_POST['nroproduto']; // Não desejo alterar o nroproduto. $nomeproduto = $_POST['nomeproduto']; //Variável para…
-
2
votes1
answer374
viewsA: How to logout in Django?
Login to VIEWS def pag_login(request): if request.user.id: return HttpResponseRedirect('/index') if request.POST: usuario = request.POST.get('usuario') senha = request.POST.get('senha') u =…
-
0
votes1
answer320
viewsQ: Different server time with PHP
I ask him to save in the comic book like this: $datacadastro = date('Y-m-d H:i:s'); And he’s out an hour longer than he is on the server. 2019-04-17 13:06:59.000 How do I save it according to server…
-
0
votes2
answers340
viewsQ: How to place an image inside echo and not show if it is empty
I made the code to show only if you have image, but it also shows the body of empty, it says in the source code of the page that my PHP is a comment as shown in the image below. And the code is…
-
0
votes1
answer351
viewsQ: How to Put Value in the Django Will HTML Field?
Hello, I’m starting with Django now and wanted to know how to pass the value of the database to a Djando field using HTML to save the edit. Na minha View: @login_required def editar_aluno(request,…