Posts by lelopes • 387 points
31 posts
-
0
votes1
answer68
viewsQ: Java Script Code Loading by Screen Resolution
Hello, I have a situation I need help with. I have a responsive site where the layout is adaptable to several screens, where the content presented and how to present will be according to the…
-
1
votes0
answers104
viewsQ: Paging with Filters using Codeigniter
I have a query with filters coming from a form. The query is executed correctly, the calculation of pages too. The form sends via method $_POST. When browsing between pages generated by the result,…
-
0
votes0
answers31
viewsQ: Behavior <img srcset> tag for use of responsive images
Hello, I’m using the html tag <img srcset = "imagem.jpg, 400w, imagem1.jpg, 300w" sizes="(max-width: 300px) 300px,(max-width: 959px) 400px"> In the Edge and Mozilla browsers, it works…
-
0
votes1
answer17
viewsQ: Result Grouped by Field and Listing N Records
I have a table called area with the structure: Id, Nome, Status I have another table called news with the structure: Id,Título,Descricao,Data,IdArea,Status I would like to return all news records…
-
-1
votes1
answer1218
viewsQ: Behavior of the Cart in Woocommerce
How to change checkout behavior in Woocommerce? I’m in a different situation for products and subscriptions. The buying behavior is different and would like to put the same process for both types of…
-
0
votes1
answer43
viewsQ: Which combo was selected within a form
Hello, Inside a form I have 4 combos <select name="combo1" ><option value="combo1">Combo 1</option> </select> <select name="combo2" ><option value="combo2">Combo…
-
0
votes2
answers61
viewsQ: Filtered data within the combo
Hello! I have two combos, a category other type of category! both are already filled with values from the database! I would like that when selecting category, the category type combo only list the…
-
1
votes0
answers637
viewsQ: Queries with mysql LIKE Operator
Hello! I’m having a problem doing a search with like mysql. My table is type Myisam, colation latin1_swedish_ci. I’m using php and queries using like are not returning expected results! If I look…
-
1
votes1
answer337
viewsQ: Random order with Mysql paging
Hello, I need to sort randomly result of my query and display pagination using mysql. Ordering and paging are working perfectly. Always when paging is done, on account of the use of ORDER BY RAND();…
-
0
votes0
answers241
viewsQ: Error 503 in Wordpress / Woocommerce
In need of help. Suddenly the Woocommerce store starts presenting 503 errors Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity…
-
0
votes1
answer29
viewsQ: Returning Mysql Table Fields
Hello, I have three tables: profissional (id, nome, idtratamento) usuários (id, nome idtratamento) formulario (id, data, idprofissional,idusuario) and another: tratamento (id, descricao) I need to…
-
0
votes0
answers271
viewsQ: Ajax giving error 302
I’m calling the same Javascript functions in separate forms on the same page. When I call the function of the first form, the function that executes an ajax is executed normally. When calling the…
-
1
votes1
answer124
viewsQ: Working with identical forms on the same page
Hello, I need to insert the same form twice on the same page. Both call the javascript function to fill fields automatically. Example, select combo 1, ai fills combo 2, selects combo 2, and fills…
-
0
votes1
answer38
viewsQ: Help with Mysql SQL Query
I need to select All messages sent by user 1 to user 2 and know the messages sent from user 2 to user 1. I am unable to mount the SQL query for the situation described. Message table: IdMsg,…
-
3
votes2
answers643
viewsQ: AJAX request with form is updating the page
I am making a simple form to be sent with jQuery Ajax. Data is being sent, but is updating the normal page. I would like to know what I am doing wrong, because when sending the form the page is…
-
0
votes1
answer46
viewsQ: Data Return from an API
I’m integrating with an email marketing system. Data returns are coming in standard: Array( [0] => Criaenvio\Grupo Object ( [nome] => Geral [ativo] => 1 [contatos_ativos] => 0 [id] =>…
-
1
votes3
answers289
viewsQ: Select SELECT field with jquery
I’m using the remote .find(input[type='text'],input[type='url'],input[type='radio']) , to find form fields in a form. would like to search for fields <select> What notation do I use in .find()…
-
2
votes4
answers94
viewsQ: Table A data not contained in Table B
Following tables: Table: Users Id , Name Table: Card Id, Idusuario, Descricao I make the query to know which user has no card: SELECT * FROM usuarios as u LEFT JOIN cartao as c ON c.IdUsuario !=…
-
0
votes1
answer596
viewsQ: Result Search PDO PHP Does not return a field
I make an sql query using PHP PDO. When checking the query result, the value of a field returns empty, but the field has value. Using the SQL sentence directly in phpMyAdmin the result returns…
-
1
votes1
answer170
viewsQ: Delete part of text by delimiters
Text: Example [caption id="attachment_90" align="alignleft" width="400"] xxxxxxxxxxxxxxxxx[/caption] How to exclude any expression above the text.
-
2
votes1
answer303
viewsQ: Database Modeling, many to many relationship between two tables
I have three websites that will share the same database. There are 3 tables: News, Photo Gallery, Blog. It will only be a management system for the 3 websites. Example: the user will save a news…
-
2
votes1
answer470
viewsQ: Friendly URL with variable parameter
I have the following regular expression for Amicable URL: RewriteRule ^categoria/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/?$ categoria.php?idc=$1&nome=$2&pg=$3 [NC] would like to leave the 3…
-
1
votes1
answer984
viewsQ: Operations with Data Mysql
I would like to know how to make calculations with dates in Mysql. Table: ID | DataValidade (DATETIME) 1 | 2017-01-01 00:00:00 2 | 2017-05-01 00:00:00 3 | 2016-06-01 00:00:00 I need to return the…
-
0
votes1
answer288
viewsQ: BETWEEN with DATETIME field
Using the BETWEEN with DATETIME database fields the same does not return the records with date equal to datai and dataf. Using DATE_FORMAT to search for date by bypassing TIME Considering the search…
-
1
votes0
answers133
viewsQ: Script Execution Queue
I need to know if there is a script execution list. I have 3 files. a. php, aa.php, aaa.php to run via cron linux task. It is programmed to run a.php . aa.php can only be executed after a.php is…
-
0
votes2
answers410
viewsQ: Ajax request error to load in google map
I’m making a request ajax code: $.ajax({ type:"POST", url:"url.php", data:{ ida : href, }, beforeSend: function(){ }, success:function(data){ $("#mapa").html(data); } }); Request is being made…
-
3
votes1
answer780
viewsQ: find a form field with jquery
I have a select field in html, it is hidden along with a div and disabled. From the selection of a value (select), it should appear on the screen and be enabled. I am unable to make the field select…
-
0
votes2
answers1709
viewsQ: Recording variables in the database and how to retrieve them and assign value
I need to write a contract in HTML format in the database. This contract will have the personal data of the people. This personal data will come from a database query. I need to dynamically fill in…
-
0
votes1
answer96
viewsQ: Rules for Validation of Parameters established in PHP Database
Friends, I would like your feedback and suggestions regarding validation rules by parameters established on a website. I have two types of parameters, a global one, which will be used for the entire…
-
0
votes1
answer436
viewsQ: Jquery stops working after running the load command
I’m using the remote $("#teste").load(location.href+" #teste>*",{id : idd}); The command updates the data div group and send a parâmetro for the same. The div, has class, commands jquery that…
-
4
votes1
answer1860
viewsQ: Know which button was clicked
Friends, I have 4 buttons like <input tupe="button">, each has a different class because they are formatted in different ways. Both buttons have the same action, with different values only. I…