Posts by ElvisP • 1,523 points
168 posts
-
0
votes2
answers132
viewsA: Send input checkbox values, only those selected to window.open()
I solved the O.R. as follows: <div class='checkbox'> <label><input type='checkbox' name='checkbox[]' value='Teste1'> Teste1</label> <div> <div class='checkbox'>…
-
0
votes2
answers132
viewsQ: Send input checkbox values, only those selected to window.open()
I would like to send the checkbox values, only those selected to a page using the window.open(): <div class='checkbox'> <label><input type='checkbox' name='checkbox[]'…
-
3
votes2
answers74
viewsQ: List-group toogle with jQuery
I tried and I couldn’t. I have a list of Bootstrap and I need to make sure that by clicking on the item .active, the rest below open with the .toggle(), but I can’t do it, you’re behaving very…
-
4
votes1
answer77
viewsQ: Bootstrap 3 Pagination - Do not centralize
The code below even exaggerated the centralized alignment classes, and still does not centralize (Twitter-Bootstrap 3.7): <section> <div class="container"> <div class="row">…
twitter-bootstrapasked ElvisP 1,523 -
0
votes3
answers210
viewsA: How to use Bootstrap4 Timeline in PHP
Webster, check this code separately, I simplified the loop with the example: <?php $row = array("A","B","C","D","E","F","G","H"); $inverte = 0; foreach ( $row as $a => $b ) { echo $a . " - " .…
-
0
votes3
answers210
viewsA: How to use Bootstrap4 Timeline in PHP
Use an IF and ELSE by alternating the value of a variable, and within the IF and ELSE by alternating the class use, check for help: <ul class="timeline"> <?php $sql = "SELECT povos.pv,…
-
0
votes0
answers25
viewsQ: Update jquery plugin trigger when updating image via DOM
I made a gallery in HTML5 and CSS3 and inserted a plugin Jquery "Lightgallery" to open the images in larger size as lightbox, there is a large image and several thumbnails, when I click on a…
-
0
votes1
answer143
viewsQ: strpos() not behaving as it should
strpos() is not behaving as it should, it always returns FALSE even with the two strings containing the value of the $czech variable. <?php $checa = "https://www.site.com.br/"; $url_ref =…
-
1
votes1
answer68
viewsQ: Parent element Child account in DOM change
A div receives a new paragraph each click, jQuery checks if there has been a change in the DOM, the event is called normally but is returning the message: UNDEFINED. The check does not work with…
-
0
votes1
answer100
viewsQ: Change the order of a result in PHP WHILE from Mysql
I am with the following difficulty, in a table are stored records of product categories, I made the connection mysqli, SELECT and WHILE, and everything is fine so far, but what I’m having difficulty…
-
0
votes1
answer306
viewsA: Scroll page after loading $(Document) with jQuery
I resolved so: <script> $(document).ready(function(){ $('html, body').animate({ scrollTop: 320 }, 1600); }); </script> When loading the page, it automatically scrolls 320 pixels down…
-
0
votes1
answer306
viewsQ: Scroll page after loading $(Document) with jQuery
How to automatically scroll the page to 400 pixels below the top when loading the page with jQuery with scrollTop(); ? <script> $(document).ready(function(){ // ROLAR A PAGINA });…
-
0
votes1
answer446
viewsQ: Changing color of a circle of a marker - Google Maps v3
The map correctly loads, the markers in the addresses coming from the bank, until then everything well, then happens a check if it has a marker superimposing the other, inside a if, I want to change…
-
0
votes1
answer78
viewsA: Scope Help in Javascript
I solved the code at the end of the function by changing the for in for for of in the setMarkers() function with the help of the community SO_EN; <script async defer…
javascriptanswered ElvisP 1,523 -
-2
votes1
answer78
viewsQ: Scope Help in Javascript
The code below serves theoretically to compare all the markers from the Google Maps API I’ve integrated to the website, where the custom markers have a radius of 750 meters, and I’m trying to…
javascriptasked ElvisP 1,523 -
-1
votes4
answers730
viewsA: Catch the subdomain with PHP
Try these functions to see if it solves your problem: <?php // COMO COMPLEMENTO PARA PESQUISA DE PROTOCOLO HTTP OU HTTPS // Apenas para fins de conhecimento if(…
-
-1
votes1
answer71
viewsQ: CSS selectors 3 :Nth-Child()
My HTML code has 12 tags that form 4 blocks of content per line, I would like to apply a different style as follows with Nth-Child: 1 div - a CSS style Next 3 Divs - another CSS style And so repeat…
-
5
votes1
answer722
viewsQ: Google Maps, doubt about overlapping radius of markers
I implemented the Google Maps v3 API in Javascript in a reservation system, in the system I used PHP to connect to the Mysql database to return the units of a franchisor that already exist and are…
-
0
votes1
answer787
viewsQ: Connection class mysqli in php and SELECT
The connection code with the database I built is working, but when I use a SELECT an error appears and I could not solve. <?php define('DB_NAME', 'projetoxyz'); define('DB_USER', 'root');…
-
1
votes1
answer214
viewsQ: PHP$_SESSION is not recognized on the same server at a different URL
I have a.php check file that checks whether the user’s session was started after logging in, which happens is the following: There are two Urls: https://www.site.com.br/controle/usuario/ And inside…
-
0
votes2
answers941
viewsA: How to call a modal page in a navbar on bootstrap?
From what I understood would be a navbar with a modal and the loading of pages inside the modal and the modal to be displayed with the requested content, I made a function where you can open several…
-
1
votes2
answers128
viewsA: Problems with list and grid thumbnails with bootstrap
Confers: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style> .column { float: left; width: 40%; // Alterar para 50%…
-
0
votes1
answer735
viewsA: Error mysqli_fetch_assoc() expects Parameter 1 to be mysqli_result, Boolean Given in
There’s an error in code completion, try it like this. <table class = "tabela" style="width:100%" border="0" bgcolor="white" style="text-align:center;"> <thead> <tr>…
-
0
votes2
answers586
viewsQ: Checking multiple <select> of same "name" if it is empty with Jquery
I tried several ways but was unsuccessful in creating a window.Alert(); with Return false; if no select field of name="producto_qtd[]" is selected or if it does not exist, but unsuccessfully, I…
-
1
votes0
answers3959
viewsQ: Google Maps and radius of a marker
I implemented the Google Maps code on one site, and it displays custom markers for all addresses on the map, it’s okay so far, it has to customize my map to change the type of the marker if one…
-
-3
votes2
answers2122
viewsA: Access-Control-Allow-Origin jQuery Ajax
If I understand correctly you are doing an Xmlhttprequest for a different domain than your page is (Post Office). Therefore, the browser is blocking this as it normally allows a request from the…
-
1
votes1
answer319
viewsQ: Preview PDF file on website developed with PHP, Jquery and CSS3
I saw on the Dropbox website that my PDF extension files are displayed a preview of the first page of the file, I searched for solutions on the internet for it but saw that there are only ways to…
-
1
votes1
answer84
viewsQ: Mysql table with datetime field, how to know how many days have passed?
Hello, I have a table where there are the following fields. prod_id [int 11] prod_nome [varchar 100] prod_desc [textarea] prod_valor [double 10,2] prod_data_cadastro [datetime] I need to create a…
-
0
votes4
answers1294
viewsA: Hide or display HTML table line with Jquery
Well, it may not be the best practice for this, but I resolved it as follows by making use of . Hide(); and . show(); with conditions. <script> $(document).ready(function (){…
-
0
votes4
answers1294
viewsQ: Hide or display HTML table line with Jquery
I have a SELECT like this: <select id="filtro-uf" name="filtro-uf" class="form-control"> <option value=" ">Selecione</option> <option value='AC'>Acre (AC)</option>…
-
-1
votes1
answer111
viewsQ: Change URL of all Mysql DBMS tables with PHP
I have a Mysql DBMS with several tables, I searched unsuccessfully how to do a routine, I need to change all URL’s of all tables to another URL. Ex: https://www.site1.com.br/ for…
-
4
votes2
answers3778
viewsA: Add element after element with jQuery
Well, I got it that way, using .insertAfter(). Example: jQuery(document).ready(function(){ $('<li class="icon-youtube"><a target="_blank" href="https://www.youtube.com.br/"><i…
-
0
votes2
answers3778
viewsQ: Add element after element with jQuery
How can I add another tag <li> ... </li> after the last with Jquery? I have installed a plugin "Jquery Custom", and would do it there. <div class="col-sm-5 col-md-5 social-media…
-
3
votes2
answers2502
viewsQ: Input limiting file type
My form has an input file field, and would like to limit the file type to select only images and pdf. <form> <input type='file' required> <input type='submit' name='Enviar'>…
-
0
votes2
answers2414
viewsA: Copy all subfolders . jpg to a single folder by cmd
Create a file. bat for this, and inserts the command, it will be somewhat artisanal, but only the part of creating the listing of subdirectories, for example: move c:\diretorio1\*.* g:\ /y move…
-
0
votes2
answers168
viewsA: How to know if the text surpassed a div? using JS
I believe that visually even being work, but with jQuery can be solved like this: <script> if ($('#div-id')[0].scrollWidth > $('#div-id').innerWidth()) { window.alert('Texto excedeu as…
javascriptanswered ElvisP 1,523 -
0
votes2
answers1452
viewsQ: In Mysql which field type is suitable for storing weight in grams?
I have this doubt, what kind of field to use for weight like 0.900, 1.200, 2.000, 0.100 and be able to treat the fields as number in the query output?
-
1
votes2
answers550
viewsQ: Check if any input file has been changed
My form has several inputs like this: <input type="file" name="imagem_file[]" class="form-control"> <button id="btnProdutoImagem" class="btn btn-info btn-block">Cadastrar</button>…
-
1
votes1
answer111
viewsQ: Jquery . after()
The error in the code is that when I click on the "Add" button new input file, the intention is to add only one field after the last one, but the button triples. My HTML code looks like this:…
-
0
votes2
answers91
viewsA: How to create a form where it stores the data in a table and at the end you can register the data in the table in the Database?
Would do so to popular the table with Jquery: <form id='meuForm'> <input type="text" id="input1" value="teste1"> <input type="text" id="input2" value="teste2"> <input…
-
0
votes2
answers582
viewsA: Align button on wordpress center
On the line: <p class="button button-primary button-large"> Appendage <p class="button button-primary button-large mx-auto text-center"> // Bootstrap 4 Or <p class="button…
-
1
votes1
answer375
viewsQ: Software to Create Mysql DB Relationship and Structure
I have a project in mind and would like to map the data and create the relationship of the tables, even if only visually before developing the pages, could refer me a software (I think the concept…
-
0
votes1
answer155
viewsQ: Import external URL array with PHP
That link https://api.coinmarketcap.com/v1/ticker/ generates an array, I would like to import it into a local array, as I do ? I tried to make: $url = "https://api.coinmarketcap.com/v1/ticker/";…
-
0
votes2
answers580
viewsQ: Recover php array data via index value
My array in print_r displays like this: [ { "id": "A220", "name": "Dipirona", "symbol": "R$", "rank": "1", "price_br": "8.4", "price_usd": "2.0" "total_supply": "287.0", "max_supply": "21000.0",…
-
-1
votes3
answers1236
viewsA: Is it possible to know which website my link was clicked on?
Link your site with a Google Analytics account, enter in the source code the piece of code where your site will be monitored by it, and after 24 hours you will have access to the resources to know…
-
1
votes1
answer114
viewsA: Date expiring from date of registration (datetime) - MYSQL
I resolved making use of DATE_ADD with INTERVAL X DAY "SELECT DATE_ADD('2018-12-20 01:52:00', INTERVAL 30 DAY);"
-
0
votes1
answer114
viewsQ: Date expiring from date of registration (datetime) - MYSQL
The field is of type datetime, how to display the date for 30 days from the registered date, example: <?php // `data_cad` = '2018-03-01 01:52:00' $instrucao = "SELECT `user_id`, `status`,…
-
0
votes3
answers84
viewsA: Why is adding two values to decimals not an exact result?
Try using the toFixed(): <script> var valor1 = 10.00; var valor2 = 10.99; var soma = ( valor1 + valor2 ); console.log(soma.toFixed(2)); </script> Reference:…
javascriptanswered ElvisP 1,523 -
-1
votes3
answers1821
viewsQ: Encrypt/ Decrypt MYSQL/ PHP autoincrement ID
I need to encrypt/decrypt the original Mysql ID printed in HTML, to later revert and receive the original ID in the back end. Ex: $var = $arr['id']; // 120 <table> <tr>…
-
0
votes1
answer109
viewsA: Duplicate result in Mysql in while
I solved my SQL like this: $instrucaoSQL = " SELECT `usuario`.*, `pontos`.`ponto_valor` FROM `usuario` INNER JOIN `pontos` ON `pontos`.`ponto_id_user` = `usuario`.`user_id` WHERE ( SELECT…