Posts by Hugo Borges • 5,294 points
332 posts
-
1
votes3
answers1988
viewsQ: disable button per second with jquery
Good this by mounting a custom css button. I need to keep it locked for 2 seconds after the first click, but it is not working. When I click I change the text to an icon, and after 2 seconds the…
-
2
votes1
answer2321
viewsQ: disable double click across site?
Is it possible to disable double-click on the entire site and any element? Is this possible with jQuery or HTML? I want to prevent the user from 2 clicks in a row on links, buttons and etc.
-
1
votes2
answers55
viewsQ: < and > check in php
Well I have to do a 3 variable check, with the following rule. Variables: $curva_a $curva_b $curva_c Rules: The variable $curva_a always has to be bigger than the others. The variable $curva_b has…
phpasked Hugo Borges 5,294 -
0
votes1
answer470
viewsQ: How to keep input values when user goes to another page
Well, I rode a form very simple to explain my problem. <?php $action = filter_input(INPUT_GET, 'action', FILTER_DEFAULT); if ((!empty($action)) && ( $action === "add")) { ?>…
-
0
votes1
answer682
viewsQ: how to use filter_input NO $_POST
Good use the filter_input thus: filter_input(INPUT_POST, 'nome_input', FILTER_SANITIZE_SPECIAL_CHARS); I wonder how I can use it in $_POST for all input, without giving the name.…
phpasked Hugo Borges 5,294 -
1
votes1
answer458
viewsQ: identify when the form is sent by the Submit button
Well I’ve put together a very simple example in php. I have to identify when it is sent by button and when it is sent when the user returns to page. The problem is, if you submit the form 2 times…
-
0
votes2
answers94
viewsQ: problem with form duplicity
I’m having a very common problem, and I don’t know how to solve it. I’m going to graze a very simple php page to explain. The problem occurs when the user submits the form, and when he clicks on the…
-
2
votes1
answer90
viewsQ: Problem with Context Menu
Well I am mounting this Menu context within a table, it is working perfectly, by right clicking it opens. But whoever clicks the link closes without redirecting to page, someone knows what the…
-
3
votes2
answers83
viewsQ: With making a Count within the array
Well I have the following array: array (size=3) 0 => array (size=5) 'valor' => string '10.00' (length=5) 'forma' => string '1' (length=1) 'parcelas' => string '' (length=0)…
phpasked Hugo Borges 5,294 -
2
votes2
answers225
viewsQ: Loading in css does not work in IE11 and Edge
Well I’m mounting a css loading, but it’s not working on IE11 and Edge. Follows the code: .loading { background-color: #EEF2F5; position: fixed; left: 0px; width: 100%; height: 100%; z-index: 1000;…
-
0
votes1
answer43
viewsQ: checkbox icone google in firefox
I’m having a problem with a checkbox in firefox. I rode him like this: .checkbox { display:none; } .checkbox + label:before { font-family: 'Material Icons'; display: inline-block; color: #0091FF;…
-
4
votes1
answer1091
viewsQ: AJAX request time
Well I make a request via AJAX, so I can put a load on the screen and remove it when AJAX loads the page. The problem is that I need to make the load appear only if the request takes more than 2…
-
3
votes1
answer1140
viewsQ: Centralize loading on the page
I’m riding a load and I’m having 2 problems. How to leave the div circle that contains the animation in the vertical and horizontal center of the screen. 2º How to leave the tips of the load…
-
1
votes2
answers508
viewsQ: load in css and jquery
I’m trying to make a system of load to inform the user that the page is being loaded. I have a php page that mounts a very large report, and it takes around 10 seconds to display. On how much this…
-
0
votes1
answer720
viewsQ: how to echo the array using foreach
Well I have a variable $curva that I counted a array, if I’m a var_dump the result is this: array (size=6) 0 => array (size=4) 'id' => string '107' (length=3) 'nome' => string 'LAREIRA…
phpasked Hugo Borges 5,294 -
1
votes1
answer1374
viewsQ: How to sort an array with php
Well I have a variable $produtoswhich receives the following array: array (size=6) 0 => array (size=4) 'id' => string '107' (length=3) 'nome' => string 'LAREIRA PEQ.' (length=12) 'qtd'…
phpasked Hugo Borges 5,294 -
1
votes1
answer75
viewsQ: doubt with include php
Well I have a function where I need to load a include file into the function. Kind like this: function Query($conexao, $query) { // Includes include "../Dados.php"; } the problem is that in some…
phpasked Hugo Borges 5,294 -
2
votes1
answer1363
viewsQ: send form without refreshing page
Well I’m assembling the code in jquery that will send the form, it is working. However I have some questions and I do not know how to solve. 1º - To avoid that I have to do a very repetitive…
-
0
votes1
answer67
viewsQ: Identifying file path with pathinfo
Well I set up a function in the local.php file: function Local() { $path_parts = pathinfo( __FILE__ ); $arquivo = "".$path_parts['dirname']."/".$path_parts['basename']; return $arquivo; } I call the…
phpasked Hugo Borges 5,294 -
-1
votes2
answers79
viewsA: recover BD name of a mysql and php connection
Well the solution was this one: $mysqli = mysqli_connect($ip_bd_mysql, $login_bd_mysql, $senha_bd_mysql, "CIDADES"); $result = $mysqli->query("SELECT DATABASE()"); $row = $result->fetch_row();…
-
0
votes2
answers79
viewsQ: recover BD name of a mysql and php connection
Good make the connection in my mysql so: $mysqli = mysqli_connect('127.0.0.1', 'root', '123', 'teste'); I want to know how I can recover the name of the database through the variable that receives…
-
1
votes1
answer121
viewsQ: recover mysql error message with php
Good guys, I know check the error code, but do not know how to recover the error message. Follow my example: $conexao->query($query); $erro = "Errorcode: $conexao->errno"; I want to make the…
-
0
votes2
answers1310
viewsQ: how to check the time of a select in mysql with php
Well I do a select, Insert in mysql with php that way: $consulta = $mysqli->query(" SELECT id, nome FROM produtos "); // Verifica erro if (!$consulta) { echo "ocorreu um erro";} How can I check…
-
0
votes1
answer37
viewsQ: Is it possible for the user to edit the session?
Good on my site I use SSL certificate, and in the session I store some access data. Is there any way for the user to change this data? Or the way I’m doing it is safe?
phpasked Hugo Borges 5,294 -
3
votes3
answers308
viewsQ: problems with distinct in mysql
I have a select where I have to sort it by the field 'Qtd' the problem is that I have this different field, and I need the products not to repeat. The 'a. id' field stores the product code, that is,…
mysqlasked Hugo Borges 5,294 -
4
votes3
answers2670
viewsQ: Table with horizontal scrollbar
I set up a table with CSS, but I’m having a problem when reports are opened on mobile or tablet. The table gets flattened, or data gets confused. It has how to place a scroll bar horizontally, and…
-
0
votes1
answer60
viewsQ: identify when the page is opened in a popup
It is possible to identify if the page was opened in a pop-up? I want to do this with javascript or jquery. I have the test.html page, and if it opens in a pop-up I need a close link to appear' You…
-
1
votes1
answer2600
viewsQ: how to close a popup with javascript
Good guys set up a function to open a popup, and need to put a link inside the popup to be closed. Someone knows how to do this? My code to open the pop-up function popup(URL) { var width = 1024;…
-
1
votes1
answer432
viewsQ: check time with php
How to check if the time entered in the input is more than 24? I tried so: if ((strtotime($hora) > "24:00:00")) { echo "a hour não pode ser maior que 24"; }…
phpasked Hugo Borges 5,294 -
0
votes1
answer550
viewsQ: how to use callback in window.print()
Well I created a printing function in jQuery, when running it hides from the menu div and prints the page. It works perfectly, but in some browser like IE and iPhone safari it doesn’t work. I…
jqueryasked Hugo Borges 5,294 -
4
votes3
answers937
viewsQ: How to add a div or <p> inside a table
Well I have a table that I’ve assembled with css. I need to add an observation within a few lines, IE will not be in all lines. The problem is that I am not succeeding, I tried to post the doubt…
-
0
votes1
answer72
viewsQ: Doubt with select in mysql
Well I have the following tables: Requests id id_cliente id_vendador 1 10 20 2 10 30 3 10 20 Devotions Id data id_pedido 1 2017/01/01 3 I need to make a ? select' informing the ? id' of the order…
-
4
votes2
answers7919
viewsQ: How to join 2 select in mysql
I have 2 select which are basically identical, changing only 1 table. I’m trying to put the 2 together in a single select, but I’m not getting it. Follows the select: SELECT DISTINCT a.id,…
-
1
votes1
answer1434
viewsQ: colspan with css
I set up a table in css, but I’m having a problem, I wanted to leave the line with colspan connected with the top line. Note that the colors do not match, that is the color of the line with colspan…
-
0
votes1
answer153
viewsQ: Css grid and input system
Well I’m setting up a grid and some input, yesterday I posted a problem I was having with the grid and FERNANDOSAVIO helped me. I’m having a similar problem when having to put the input inside the…
-
1
votes1
answer60
viewsQ: Problem with Grid in css
Well I’m having problem with the grid in css. Whenever I finish a '' it creates a bigger space. Someone knows how to solve this and leave him uniform? Follows the code: .column { background: #eee;…
-
4
votes1
answer2772
viewsQ: Align icon with text vertically
How do I align the icon with the text? .material-icons { width: 24px; overflow: hidden; } .material-icons.tiny { font-size: 1rem; width: 1rem; overflow: hidden; } .material-icons.small { font-size:…
cssasked Hugo Borges 5,294 -
0
votes0
answers36
viewsQ: customize scroll in fox and IE fire
Well this scroll works perfectly on Chrome and safari. I wondered how to make the scrollbar equal in IE and Firefox. Follows code. .container { height:200px; overflow: auto; width: 250px;…
-
1
votes1
answer250
viewsQ: problem with jquery Mask in dynamic form
Well I set up a dynamic form where I have the 'input' plots. It already with value 1 loaded. I have another input called value, where I use jquery Mask. It works however when I change the value of…
-
0
votes1
answer5011
viewsQ: allowing only letters in the input with jquery Mask
You can only allow letters in input with jquery Mask? I’m using this plugin: Jquery Mask Plugin…
-
1
votes1
answer174
viewsQ: Animation with CSS and jQuery
Well I am mounting an Alert system with jquery and css. Everything is working. However I noticed that in some browsers it is getting a little slow. The problem is because the div of Alert moves…
-
1
votes2
answers97
viewsQ: Error with select in mysql
I am having an error log that does not happen frequently. On average 1 time per month. The problem is that I am not identifying the error. I’ll put my select on so you can see if there’s something…
-
1
votes2
answers78
viewsQ: alignment of div and summarize text
1 I need to place everything inside the horizontally aligned 'container-head' div. 2 The text of div 'c-txt' has to be summarized with ... 3 The div 'c-Bt' button has to be at least 100px long. Can…
cssasked Hugo Borges 5,294 -
6
votes1
answer329
viewsQ: How to summarize a text within the <span>?
Well I have the following code: <span>TÍTULO CONTAINER TEXO TEXTO TEXO TEXTO</span> I need this span has been width: 100% and that has no line break, if the text is too large it has to…
cssasked Hugo Borges 5,294 -
0
votes2
answers365
viewsQ: How to leave vertical line the size of the div
Well I wanted to leave the vertical line of '' the size of the main div, and the text is after the line, same as the beginning. .font-15, input, textarea, select, .container-head, .se-pre-con p,…
cssasked Hugo Borges 5,294 -
1
votes3
answers48417
viewsQ: Make text have line break inside the div
Good need to make the text that is within the class div txt has line break. Follow the example of the code I have to change. .font-15, input, textarea, select, .container-head, .se-pre-con p,…
cssasked Hugo Borges 5,294 -
1
votes1
answer380
viewsQ: Display fixed alert independent of scroll position on page
Well I’m mounting a confirmation alert, by clicking on the link it will appear. Everything is working, but when the page and very large the alert does not appear, because it goes to the top of the…
-
1
votes3
answers34
viewsQ: Line up and put div on the other
Well I created a div called 'notification'. Where I will put a text and at the end of it has a menu. Everything is working fine, but when the text is too big and the screen is small, the menu button…
-
3
votes2
answers3232
viewsQ: check amount of php character
How can I check if a string has more than 3 characters? Type Thus: if ($string >= 3) { echo "ok"; } else { echo "erro"; }
phpasked Hugo Borges 5,294 -
-1
votes1
answer52
viewsQ: doubt about performance
I’m riding a little Framework of design CSS and JS to standardize the system I’m working on. My doubt is how to get the best performance. I’ve done several things like enable the cache, organize the…