Posts by Alex Juchem • 181 points
13 posts
-
0
votes2
answers33
viewsA: Doubt in the insertion of data performing the relationship in another table
Hello, you are closing the parentheses in the wrong place, close it after informing Cpf, getting: ... VALUES (SELECT _id FROM new_adresses WHERE Cpf = '111.222.333-00')
-
1
votes1
answer740
viewsA: Login with Javascript and PHP - Dando Reload sozinho
Good morning. Add the following line below Function log(e){, thus: ... function logar(e){ e.preventDefault(); ... e. preventDefault() tells the browser not to follow the http request, so it executes…
-
1
votes1
answer121
viewsQ: Change programming language pro APK
I have a App in Playstore I did using the Ionic/Cordova, the App hangs a lot on the smartphone and for this reason I would like to create a new App from scratch using another programming language,…
-
0
votes1
answer2514
viewsA: Fatal error: Unsupported operand types | PHP error
You are doing your if wrong, because if you enter the first condition, you will not enter Else which is where the sum occurs a returns the typing error. Try this: $totalProvento =…
phpanswered Alex Juchem 181 -
0
votes2
answers558
viewsA: Real-time database verification script
You can do this using ajax and while the request is made, you can display a message on the screen to the user.
-
3
votes1
answer380
viewsA: How to Display Various Values of a JSON in PHP
$nome = $json_str["response"]["players"]["76561198012598620"]["name"]; echo "$nome";
-
2
votes1
answer2762
viewsQ: Add values from within a column with postgres
I’m trying to sum the values from inside a column with postgres, the table structure is as follows: id |nome_municipio |valores 1 |Porto Alegre |100.01;95.0;50.1 2 |Ivoti |87.0;80.1;45.1 3 |Novo…
-
1
votes1
answer921
viewsA: PHP use onclick to perform another page function
The answer is a little Gambi, but it can give you a light to improve. Pass a parameter in the url warning the script to execute the function: <a href="./index.php?acao=AbreAba"…
-
1
votes2
answers186
viewsA: Tools for working with Graphics
You’re working with php, but could graphics be displayed in javascript? If so, search for jquery Charts in google.
-
0
votes1
answer150
viewsA: Modal with Iframe
This iframe that opens, is in the same domain as your site? You are giving a session_start() on the pages that are opened within the iframe? This can help you.…
-
1
votes1
answer121
viewsA: Sum query
To add up uses the SUM(field) and to make the player be displayed only once use DISTINCT field or can group using GROUP BY field: SELECT DITINCT p.[Player ID], SUM(s.[Goals Scored]) AS gols_jogador,…
-
1
votes2
answers621
viewsA: Return default value in mysql query
Try to use the case: SELECT CASE WHEN t1.PBRT > 0 THEN valor * t1.PBRT ELSE 0 END CASE AS C_MP CASE documentation…
mysqlanswered Alex Juchem 181 -
0
votes3
answers70
viewsA: How to add two values?
while($row = mysql_fetch_assoc($result)) { if($row['level'] == '**1**') { echo('OLAAAA'); } elseif ($row['level'] == '**2**') { echo('OLAAAA USER 2'); } else { echo('NAO TENS ACESSO A ESTA PAGINA');…