Posts by Alexandre Vieira de Souza • 95 points
11 posts
-
1
votes2
answers1073
viewsQ: How to filter only the date of a field that has date and time set?
I need to create a select in Mysql to filter the month in a table, but the field where the date is set has also set the time, thus: [2017-02-04 10:00:00] How do I filter only the date of this field…
-
0
votes1
answer45
viewsQ: I cannot succeed when making a request via ajax
I take in my JS the month the user chose in the HTML select, if in case the value month has been set it executes the function Filter_data_bank as the value, if not I define that the value will be…
-
0
votes1
answer59
viewsQ: How do I pass a javascript value to PHP?
I have a select that lists all my players: <select name="jogador" id="cod_jogador"> <option name=""></option> <?php foreach($jogadores as $jogador): ?> <option id="codigo"…
-
1
votes2
answers49
viewsA: How do I list all fields from one table plus a random value from another table?
I was able to solve it, I changed it to filter GROUP BY using.id ads instead of fk_ads. SELECT anuncios.id AS id_anuncio, anuncios.titulo_anuncio, banners.id AS id_banner, banners.imagem AS…
-
2
votes2
answers49
viewsQ: How do I list all fields from one table plus a random value from another table?
I’m having a problem making the relationship with two tables, tb_adm_anuncios and tb_adm_anuncio_banner. For each ad I have 4 banners, and to list these ads I need: **Anúncio:** -Nome do Anúncio…
-
0
votes1
answer291
viewsA: My autoload by Poser is not working
I managed to solve, missed to do the include of the autoload in the index.php require_once 'vendor/autoload.php';
-
0
votes1
answer291
viewsQ: My autoload by Poser is not working
I am learning to autoload using Composer, but am getting the following error while running the tests: Fatal error: Class 'App Model Database' not found in /var/www/Library/index.php on line 5 it’s…
-
2
votes1
answer31
viewsA: How do I check if a $_FILE has been set?
I managed to solve, as it was a case of alteration of the file I did the following: if(!empty($_FILES['imagem']['name'])){ $upload = new Upload(); $novoNome =…
-
1
votes1
answer31
viewsQ: How do I check if a $_FILE has been set?
all right? I’m trying to run this code: if(empty($_FILES['imagem']['name'])){ $upload = new Upload(); $novoNome = $upload->efetuarUpload($_FILES["imagem"]);…
-
1
votes2
answers362
viewsQ: Is it possible to store user inputs by the Scanner Class in a database?
I have an application made in Java, and I need to store the user’s registration information in the database: Cpf, password, name, address, telephone System.out.println("Digite seu CPF"); cpf =…
-
1
votes1
answer759
viewsQ: How to save the values of a String in a Double variable?
I have a string with the x value inside it (String value = "x") Need to pass this value to a Double Variable, how do I pass the x value of the String to the variable? If I convert from String to…