Posts by Gabriel Queiroz Schicora • 507 points
31 posts
-
0
votes1
answer111
viewsQ: Git push to in "Total"
I have some projects hosted on Azure and I use git for versioning, they all worked well but from one moment to another one of these repositories started to give problem and does not end the push…
gitasked Gabriel Queiroz Schicora 507 -
2
votes1
answer90
viewsA: File upload returning "Missing to Temporary Folder"
Well, the problem has been solved and it is more strange than I imagined, I will leave the answer here to serve of help in case someone has the same problem. It was necessary to execute the command…
-
1
votes1
answer90
viewsQ: File upload returning "Missing to Temporary Folder"
I have my site hosted on Godaddy and on this site I have a part for uploads, this worked well until days ago, now started returning the error 6 - Missing a Temporary Folder for any file I try to…
-
0
votes1
answer387
viewsQ: Whatsapp API does not connect to database
I am beginner in this area of servers, Docker, Whatsapp API, etc. I need to install it in my Godaddy VPS. The Docker is already installed correctly and the Whatsapp api is also installed and…
-
0
votes1
answer193
viewsQ: Cron having trouble running PHP file
I have a problem executing my tasks in Cron. When I access the script to be run by the browser it works normally, but when it is run by cron, I get the following error: PHP Warning:…
-
0
votes2
answers61
viewsA: Random questions (id) in a record
From what I understand the problem is time to register the questions to the candidate, since the select is correct, you could do: First go through the data coming from the database and place it in…
phpanswered Gabriel Queiroz Schicora 507 -
1
votes3
answers503
viewsA: I cannot display the output of a SELECT COUNT (MYSQL) in the HTML page
The problem is you’re trying to give a echo in the result coming from the database, but this result is an object, not a string. The problem lies in that line: <h1><?php echo…
-
2
votes2
answers183
viewsQ: Problem with Regex in PHP
I have the following function that is used to take special characters from a string: function removeSpecialChars($string){ //List (Array) of special chars $pattern =…
-
1
votes1
answer854
viewsA: Call php function using onblur (completed)
Basically an Ajax function works with this structure (I’m putting an example, you need to adapt to your use). This script will make a request for the file verificaDado.php using the method GET. It…
-
1
votes3
answers251
viewsA: Force to fill in php input
You can do this using Javascript (with Jquery), by changing the value of the required attribute of textarea. In PHP you need to put a class in td textarea (You could do without, but it is better…
phpanswered Gabriel Queiroz Schicora 507 -
1
votes1
answer35
viewsA: Condition that check the registration
Before in your HTML the name this one with capital S and in php is minuscule, I don’t know if you have any problem, but it’s good to leave the two equal. $tabela1 .= '<td style="float:center">…
phpanswered Gabriel Queiroz Schicora 507 -
0
votes2
answers354
viewsA: How to print the result of a SELECT (php / sql) in a specific place in the HTML page?
It’s quite simple, you put the database query on the page (I decided to put in the head) and within the td that you want to show the lines, puts the result (This result can be better formatted, put…
-
1
votes3
answers68
viewsA: selected option
Time to ride your select just check on each option if the ID of this neighborhood matches the ID that is in the record being edited, the code would look like this: <?php $busca_bairros = "SELECT…
-
2
votes3
answers1163
viewsA: How to separate HTML from PHP
Dude, a little PHP and HTML always end up mixing, for example includes and IF can stay there quietly, what you could separate is this part: <?php $sql = "select titulo,id from POSTS"; //$sql =…
-
1
votes1
answer178
viewsA: How to check the number of words in a String?
You can separate the string by the spaces between the words using the function split() and see the size (length) of the array. val string = "Uma string de exemplo" val numeropalavras =…
-
1
votes2
answers5626
viewsA: Trigger event when user starts typing in search field
If you need to use pure javascript can put the event onkeyup in the search input, assigning a javascript function, and in this function do the search action: function buscar(){ //Ação de busca…
-
0
votes0
answers81
viewsQ: Asynchronous upload of videos
I have a page with several videos that comes from Youtube, that page takes a considerable time to load and on older computers, the page stays locked until everything is loaded. Is there any way to…
-
3
votes1
answer202
viewsA: Send integer as string in a JSON
Just use quotes for the value: {"matricula": "201737909200976697"}
-
0
votes2
answers125
viewsA: Use . htacess to change site to another language
You can change the line that redirects to: RewriteRule ^eng/([a-z_-]+)\/?$ index.php?page=$1&lang=eng [NC,L] And when searching for the file checks the language: $page = (isset($_GET['lang'])…
-
1
votes1
answer96
viewsA: Use the select tag to change the content of the page?
You can use the event change jquery: $('#lings').change(function(){ //Aqui você faz o que for necessário para mudar a língua }); But I also realized that in your select you have a onchange for the…
-
0
votes3
answers1246
viewsA: Regular expression for 2 specific cases
Just improving the previous answer, in the second expression you said the letters will be SP or RJ, but with the regex /^[A-Z]{2}[1-9]:\d{2}:\d{6}$/ it would accept any set of two letters, to limit…
-
0
votes1
answer469
viewsA: foreach inside the foreach without repeating the data
Dude, the problem is that your option echo is inside the 2 foreachs, then it will repeat, I took the echo from inside one of the foreach and gave a summary in your code: if(isset($arrComboBar)…
-
0
votes1
answer38
viewsA: User without duplication
Just check if anyone already exists in the bank with the same registration or email, follow the code: include("includes/conexao.php");//conexão com o banco $query = "INSERT INTO usuario (nome,…
-
2
votes1
answer29
viewsA: Contents of <p> coming from the bank exceeds the limit of the div
Because the data is all together (no spaces) it is possible that it understands everything as a single word, so put the following line in your css of that tag <p>: white-space: pre-wrap;…
phpanswered Gabriel Queiroz Schicora 507 -
4
votes1
answer119
viewsA: mysqli_fetch_assoc() - PHP
The function mysqli_fetch_assoc() returns an array with the database results, but the indexes of that array will be represented by the column name, for example: In a table we have the columns name,…
-
0
votes1
answer91
viewsA: ignore existing lines in the database when importing php file
Follow the code to check if this line is already registered in the database: function Inserir($itens, Pdo $pdo){ $sts = $pdo->prepare("INSERT INTO dados(loja, cod_prod, cod_acesso, desc_prod,…
-
1
votes2
answers334
viewsA: Count items separated by semicolons in mysql table field
If I understand correctly, you will take the data and place it in an array without repeating the items. I considered that the data will all be in a variable separated by ;, if it is not so you can…
-
1
votes1
answer183
viewsA: How to take the value of $_GET['sealed'] to leave the checkbox selected using PHP
You can inside the foreach that shows the checkbox, check if the value is in the $_GET['selected array], the code would look like this: foreach($selecoes as $check){ $checked =…
-
1
votes2
answers3085
viewsA: Event for when the user leaves the page
Although the question is from some time ago, I realized I have no answer that really answer the question, so for those who have the same doubt and end up falling in this post. Just use the event…
-
0
votes5
answers375
viewsA: Make <a> change href=" button on each new visitor ( IP ) on a given page
Dude, I made the logic for you, now just implement there and create the database, I made using mysql. <?php //Função que pega IP function pegaIP(){ $http_client_ip = $_SERVER['HTTP_CLIENT_IP'];…
phpanswered Gabriel Queiroz Schicora 507 -
1
votes0
answers54
viewsQ: Problem with Enctype in the form
Hello, I have a project being developed in php, it was all done so I hosted the site, when I came across an error that did not happen locally. I have a form file, this page receives a parameter via…