Posts by DbaAlone • 424 points
43 posts
-
0
votes1
answer33
viewsA: socket io error client side
This problem occurred due to a version used in the client side, when upgraded to the latest the problem was resolved
-
0
votes1
answer33
viewsQ: socket io error client side
When connecting to the server via socket io the browser returns the following error: http://localhost:3010/socket.io/?EIO=3&transport=polling&t=NOeqJv8 400 (Bad Request) The following code…
-
0
votes1
answer31
viewsA: Why is the output value of half incorrect?
As stated at the very beginning of the question its half variable is a Float due to this when you use a printf you need to reference to variavel like float, so would be printf("%f \n",…
-
2
votes2
answers190
viewsA: How do I create the variable that saves all this information and then displays it on the.log() console?
I put it in a variable to see if it’s getting the addresses correctly And there was one more mistake where you were using double quotes <script> var endereco = { rua: 'dos Pinheiros', num:…
javascriptanswered DbaAlone 424 -
-3
votes1
answer77
viewsA: ERROR WHEN INSERTING PHPMYADMIN
Following the PHP Handbook you can see that the Insert with bindValue uses simple quotes, I believe this is impacting your code. Thus remaining: <?php Class videos { try{ $pdo = new…
-
0
votes1
answer123
viewsA: It would be possible to create a string that has more than 256 characters in VBA
After searching I found that Msgbox, or other Debug displays only 255 characters, but the variable itself supports more.
-
0
votes1
answer123
viewsQ: It would be possible to create a string that has more than 256 characters in VBA
Can a variable of type string and need to save around 1k of words to send as parameter to a database, I would like to know how to do this. Actualemente meets thus my variable: Dim variavel As String…
-
0
votes1
answer51
viewsA: Change the default value of a Boolean in an ASP.NET select
I created a form and added the same fields for testing, hope it works. At the time of starting the form I put so that it creates a string list and add as datasource of the list. protected void…
-
0
votes1
answer133
viewsQ: I need to take a column with a lot of redundant information and just take one of them
I own a combo-box where I need him to go coluna "A" and take only one information of each (because it has redundancy of it), an example would be departamente in the case there is redundancy and not…
-
-5
votes3
answers360
viewsA: I can’t find the code error
You need to convert to FLOAT print(f'''+ Salário Bruto : R$ {.format(float(salario_bruto:.2f)} - IR (11%) : R$ {ir:2.f} - INSS (8%) : R$ {inss:2.f} - SINDICATO (5%) : R$ {sindicato:.2f}…
-
0
votes1
answer34
viewsA: Integration between Mysql banks giving error 1442?
You cannot change a table while the Trigger INSERT is firing. The INSERT can do some blocking that can result in a conflict. In addition, updating the table from a trigger would trigger it to fire…
-
0
votes2
answers95
viewsA: Woocommerce show products featured by sql category
Put your question in a Where clause Thus: Select d.ID, a.taxonomy, b.name, d.post_title, d.post_type from wp_term_taxonomy a inner join wp_terms b on a.term_id = b.term_id inner join…
-
-1
votes3
answers212
viewsQ: Relational Algebra - Query in 3 tables
Good afternoon,I’m having a hard time returning a value from my bank when it has two attributes, I’m starting from this statement. Select the names of the parts that use the materials with the names…
-
0
votes2
answers78
viewsA: Make teams combination in SQL without repetition
try something like that SELECT a1.nome_time, a2.nome_time FROM times a1, times a2 WHERE a1.nome_time < a2.nome_time and a1.nome_time <> a2.nome_time;
-
0
votes1
answer43
viewsA: How to Take data from an SQL table by referencing only the first position of the VARCHAR type
Try something like this because the LIKE with the % at the beginning will catch only those that start SELECT DISTINCT A.SEG1 ||'-'|| a.SEG2 ||'-'|| A.SEG3 FROM TB_TESTE WHERE A.SEG3 NOT LIKE '%C%'…
-
0
votes2
answers638
viewsA: How can I align the second card to the right?
Try so with the property Float of CSS that works in the Bootstrap <div class="col-lg-6"> <div class="card card-certificado float-left" style="width: 18rem;"> <img class="card-img-top"…
-
0
votes3
answers814
viewsA: SELECT WITH STRING FORMATTING
SELECT DATE_FORMAT(`t_movimentacao`.`data`, '%d / %m / %y') FROM t_movimentacao WHERE `t_movimentacao`.`id` = '1'; see if it goes like this
-
-2
votes2
answers57
viewsA: Count product output on day in mysql
Try with a groupBy by date, forcing the ID of the product and joining them by date and adding to Qtde
-
0
votes1
answer48
viewsA: How to put the url of the current page in a javascript variable in blogger
The Javascript url is taken from location var url = location.href;
-
0
votes1
answer56
viewsA: Problems with PHP Array
Try it this way, without using foreach, even though you know it is more suitable $array = array( 'stack' => 'Overflow', 'linguagem' => 'Português', 'tags' => array('PHP', 'Iteração',…
-
-1
votes3
answers247
viewsA: I cannot send form data with AJAX
PHP <?php if(isset($_POST["btnEnviar"]) && $_POST["nome_f"] != '' && isset($_POST["email_f"]) && $_POST["email_f"] != ''){ $nome_f = isset($_POST["nome_f"]) ?…
-
0
votes1
answer43
viewsA: Empty field on inputs overwriting field values in BD
It would be something like this, it’s quite simple, but this easy to understand, you check if a note is returning empty, and blocks <?php include_once("../../../php/connect.php");…
-
2
votes2
answers255
viewsA: Why is my image passing from my div?
<!DOCTYPE html> <html> <head> <title>Teste imagem</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1,…
-
3
votes2
answers49
viewsA: How to use desired CSS file property
This happens due to hierarchical level of CSS you see in this link You may be prioritizing heigth by using the tag: important so it will catch the most Important for the code ex: .form-contro{…
-
1
votes1
answer1636
viewsA: Firebird - Recover Database
So come on, first recommend to check again if it returns any errors... use this command to know, being inside the folder with the cmd opened in it. gfix -v -full caminho_da_base -user nome_usuario…
-
0
votes1
answer65
viewsA: select based on 2 tables
do more joins, for example, the first joins to load and display the complete results and a second to grab the team’s image try something like this SELECT bloco1.id_origem AS pontoA, bloco1.id,…
-
0
votes1
answer37
viewsA: Button to delete form if only it is not filled
<div class="col-12 text-center"> <div class="link_company blue underline_hover pointer" (click)="removeLocation()" i18n>Remover campos</div> </div> make a function that is…
-
1
votes1
answer53
viewsA: Filter data from a JSON
I was able to find var tamPerson = Object.keys(retorno).length; $.each(retorno, function(key, val) { $("table").append("<tr id='t_titulo'><th>" + key + "</th></tr><td…
-
1
votes1
answer53
viewsQ: Filter data from a JSON
I would like to filter some data from a JSON returned from a query, in order to return a list with the title and value of each property. code I’m trying to modify: var titulo = Object.keys(retorno);…
-
0
votes1
answer70
viewsA: Explanation of the code
int nota[2]; <- cria uma variável na forma de array com 2 posicoes scanf( "%s %d", nome, &horas );// <- recebe a informação digitada no cmd int i = 0; while( i < 2 ) {// <- estrutura…
-
2
votes1
answer92
viewsA: Problem with image loading
I believe that is why src looks for a path, put all the content requesting the image in a function where the Return is the complete path. kind of function linkimg(){ url =…
-
1
votes1
answer39
viewsA: My test code is as follows:
session_start(); if($_SESSION['nome'] != 'sim' ) { header('location: index.php?login=erro'); } else { echo 'Logado'; //Ele entra aqui; } N the IF syntax o == It is to compare if the value is equal…
-
0
votes2
answers66
viewsA: Setting Data Output in C
It would be something like this, in C it is difficult to give a "float" in the answer, but the solution is this #include #include #include int main() { int i, num, rsoma, rsubtracao, rmultiplicacao;…
-
0
votes4
answers59
viewsA: Div in the center next to each other
The float It works as a floating point for something, use the float in your main block, so it will cause your two Ivs to float on it, and also use the float in both Ivs so that they both catch the…
-
1
votes1
answer22
viewsA: Compare 4 Variables and execute unique code for each result
You could use the syntax of IF, using the logic of OR, where it will be basically like this act1="$vartest1" act2="$vartest2" act3="$vartest3" act4="$vartest4" if [ "$act1" == "teste" ou "$act2" ==…
-
1
votes1
answer57
viewsA: Problems creating Postgre backup on Asp.Net MVC
I checked on a website something that might help... First check the postgre bool bPostgresService = false; ServiceController[] services = ServiceController.GetServices(); // try to find service name…
-
0
votes1
answer29
viewsA: Update a user’s schema
Good morning, I found in Stacks a story that can help you, it is very well explained https://stackoverflow.com/questions/24430220/e11000-duplicate-key-error-index-in-mongodb-mongoose If you have any…
-
0
votes1
answer126
viewsA: take data from the url using Avascript/jquery
Look I have a code a part of it is this, I use the Slice to remove var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); var hashes = retorno.split('&');…
-
0
votes2
answers217
views -
3
votes3
answers98
viewsA: Conditional structure and repetition For simple in C
#include <stdio.h> int main() { int c1,c2,ops; printf("Digite um opcao:"); scanf("%d",&ops); if(ops==1) { for(c1=1;c1<=10;c1++) printf("%d ",c1); } if(ops==2) { for(c2=1;c2<=20;c2++)…
-
1
votes1
answer103
viewsA: Take Database info from the array element
I don’t know if it’s a horrible mess but it’s what I think might work, $query = "SELECT * FROM product Where id = $_SESSION['cart'][$i] "; that change for $cart = $_SESSION['cart'][$i]; $query =…
-
0
votes0
answers54
viewsQ: Ajax - after calling him my functions are not working
Hi guys this is my first question so come on. I am developing a page for android where it counts with only js, html and jquery, I made a back that searches for information in the database from a way…
-
-2
votes2
answers553
viewsA: Copy data from one database to another?
You could take a backup of this data and run in this database where you would insert this data and tables. I would at least do that.