Posts by Gustavo Castro • 599 points
31 posts
-
0
votes1
answer141
viewsA: Error BD query (Codeigniter PHP Mysql)
opa! Message: Undefined variable: Buscar Undefined variable $dados["Buscar"] = array('Buscar' => $lista); you have to pass the variable name as ["varialvel name"] otherwise codeigniter does not…
-
1
votes2
answers1053
viewsA: How to install Node.js in its latest version (12.x) from the Ubuntu terminal?
Guy tries this command: sudo apt install nodejs Second option: sudo apt install snapd sudo snap install node --channel=12/stable --classic In accordance with link…
-
1
votes1
answer251
viewsA: php sending via Curl nodejs
in php I can send everything I need and in nodejs I process the return xml that was not processing in php I am presenting the link that I found the answer to my questions as well as the…
-
-1
votes1
answer251
viewsQ: php sending via Curl nodejs
Good evening, I’m 2 days trying to send Curl php data to nodejs when I do out the Curl works... but I needed it to go this way.... attempt 1 php: { $this->ch = curl_init();…
-
5
votes1
answer230
viewsQ: simplexml_load with xmlns problem
Well I have done everything I knew but is giving an error saying xmlns is not absolute. I have checked the xml and is correct now when simplexml_load_string(): namespace Warning : xmlns: URI…
-
0
votes1
answer22
viewsA: fsockopen errors with SSL
I ended up finding the reason as I had enabled the firewall ports 465 and 587 were blocked so I went to the CWP firewall and enabled the exit traffic through ports 465 and 587. Before it was only…
-
0
votes1
answer22
viewsQ: fsockopen errors with SSL
Well I have a code that in wamp server php 7.3.1 always works. When I went up to a hundred running CWP7 php 7.3.2 the same code doesn’t work $config['Protocol'] = "smtp"; $config['smtp_host'] =…
-
0
votes1
answer243
viewsA: Show JSON in HTML
ideal is for you to convert this json to php object. using the function of json_decode You generate an object and then display only the data you want on the screen. = D <?php $json = '{"foo-bar":…
-
1
votes2
answers1539
viewsA: Mysql Query with recursive N levels
This will not appear this way in mysql only in another language as it requires indentation as html offers lists function dba_buscaproximo($id_pai = null) { $sql = "SELECT * FROM `ingredientes` WHERE…
-
-2
votes4
answers596
viewsA: Progressive counting using for
Hello Voce has to put your counter in a div and go changing it over time for (var i = 0; i < 9; i++) { document.getElementById("demo").innerHTML=i } <div id="demo"> </div> But I…
-
-1
votes2
answers2803
viewsA: File storage, database or disk?
Hello, Software performance is equal in both cases according oracle in the text also shows about the various ways to display or load files from the database. It depends much more on how much…
-
0
votes2
answers77
viewsA: Local backup with online access
Hello. I believe it’s something like net2ftp you’re looking for.
-
0
votes2
answers38
viewsA: Why aren’t you comparing?
Opa. $data = mysqli_query($dbconn, $query); $result = mysqli_num_rows($dbname); You passed dbname instead of $data ai php does not know where to pick up the amount of lines, so your code is just…
-
0
votes1
answer260
viewsA: Bcrypt in java and php does not match
in PHP <?php /** * Note that the salt here is randomly generated. * Never use a static salt or one that is not randomly generated. * * For the VAST majority of use-cases, let password_hash…
-
2
votes1
answer78
viewsA: A Site as Background
Hello, as you should specify a file to be your background I believe that a site will not work what would work would be you call the site within an iframe. which is like an embed on your website.…
-
0
votes4
answers294
viewsA: Replace character by PHP function
Opa. I believe you are looking for the exponential function at Pow. var_dump(pow(2, 8)); // int(256) Draught Pow function php documentation…
phpanswered Gustavo Castro 599 -
0
votes1
answer67
viewsA: "login" method error using php and Pdo object orientation
how it should be done: $login = new Usuario(); $email =filter_input(INPUT_POST, "email", FILTER_SANITIZE_MAGIC_QUOTES); $senha =filter_input(INPUT_POST, "senha", FILTER_SANITIZE_MAGIC_QUOTES);…
-
1
votes1
answer39
viewsA: What part of the HTML5 semantics do I put a form in?
There is no exact place where you should put the form there is the contextualization of your form after all it is not contextual you put a form in an item display list as a list of blogs. In view of…
html5answered Gustavo Castro 599 -
0
votes3
answers1026
viewsA: View upload files in an HTML page
Does google know how to access your file since Voce is using via localhost? tries to put your code in the cloud or other location and checks if it is accessible your files. I believe your file is…
-
0
votes2
answers109
viewsA: Launch Exception with error #1452 - Cannot add or update a Child Row: a Foreign key Constraint fails
Hi, why don’t you check first if the fields exist with a select in the correct tables if there is no forwarding to your error. if Row Count == 0 why whether to exist or bring an object is all you…
-
2
votes3
answers2922
viewsA: Dynamic table with addition of rows and columns
function myFunction() { var table = document.getElementById("myTable"); var row = table.insertRow(0); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell1.innerHTML = "NEW CELL1";…
-
1
votes2
answers702
viewsA: HTML button as selection for questions
#ck-button { margin:0px; background-color:#EFEFEF; border-radius:4px; border:1px solid #D0D0D0; overflow:auto; float:left; } #ck-button label { float:left; width:4.0em; } #ck-button label span {…
-
16
votes3
answers1078
viewsA: What is the impact of changing the default behavior of an HTML element?
1)It is allowed to use Javascript to change the natural behavior of an element to act as another? Javascript is a language that makes the sites become interactive and according to the page…
-
2
votes2
answers104
viewsA: Remove user without deleting from database
As you have not put the database you are using I will show you via one of the solutions. // The Three Parts of a LINQ Query: // 1. Data source. int[] numbers = new int[7] { 0, 1, 2, 3, 4, 5, 6 }; //…
-
0
votes3
answers4627
viewsA: How to return empty record from a Select?
Dude, I think you’re doing it wrong. you do not need to know has the fields but if the number of rows that returned is greater than zero. to bring any return something you must fetch and that has…
-
0
votes1
answer95
viewsA: Font and url problem
Hello, this must be caused by your domain not redirecting requests from http://your domain for http://www.seudominium where the font urls are fixed checks on your website which "default" link I…
-
0
votes1
answer331
viewsA: PHP Security - Avoid SQL Injection
Yes, your method is susceptible to sql Injection. First I would like to do php in brute force to go to a framework like Zend Framework or the simplest ones like Codeigniter this way you care more…
-
0
votes2
answers1288
viewsA: How to create 1:N relationship tables?
Guy if you need to create new tables for your data means that your DBMS architecture as a whole is wrong. Have to review all the data and what you are wanting to do with your application. Explain to…
-
1
votes1
answer125
viewsA: The matrix is printing the same values for all indexes, why?
face I don’t see any attribution to your variables that’s correct? for(linha=0; linha<12; linha++){ for(coluna=0; coluna<4; coluna++){ scanf("%d", &matriz[linha][coluna]); } } for(linha=0;…
canswered Gustavo Castro 599 -
6
votes6
answers28831
viewsA: How to limit an input of type Number to only 3 characters?
hello I have this code only accepts numbers and goes up to 3 look there. $(document).ready(function() { $(".verifica_numerico").keydown(function(e) { // Allow: backspace, delete, tab, escape, enter…
-
0
votes2
answers54
viewsA: Mounts a vector with 5 students, in the fifth student this vector multiplies by 2, being able to give input to 10
You have to put on an If ultimaPosicao == 5 then private Aluno alunosnovos[] = new Aluno[10]; alunosnovos = alunos; alunos = alunosnovos; Voce reason has to increase the physical space copy the old…
javaanswered Gustavo Castro 599