Posts by Léo Kovaski • 49 points
8 posts
-
0
votes1
answer31
viewsQ: Optgroup JSON + JS
I am trying to group the result of a json into 2 optgroups. Follows the JS: //AJAX CARREGA LOJAS $(function(){ $('#estado').change(function(){ if( $(this).val() ) { //$('#lojas').hide();…
-
0
votes1
answer379
viewsQ: Get Contents source code in Javascript
Hello, I am trying to use a javascript to read the source code of another page and write this content inside a div. <script type="text/javascript"> $.get('teste.php', function(data) {…
-
0
votes2
answers124
viewsA: Chartjs + mysql + php (month entries)
I got! select month(primeira_conversao) as mes, year(primeira_conversao) as ano, count(id) as total from leads WHERE month(primeira_conversao) = 11 and year(primeira_conversao) = 2017 group by…
-
0
votes2
answers124
viewsQ: Chartjs + mysql + php (month entries)
Guys, I have a user registration table. I am creating a chartjs to show on a bar chart the number of registered users per month. The mysql query would only have to return me 2 columns (MONTH AND…
-
1
votes2
answers60
viewsQ: mysql_num_row with Inner Join
I have 2 tables: Leads Shops The relationship is as follows: 1 store -> N leads I need to list the number of registered leads for each store and then sort in descending order to know which store…
-
0
votes0
answers372
viewsQ: Receive PHP response in AJAX
Friends, I am developing a script to send an email according to the choices of the users. Below is the ajax that makes the upload: $.ajax({ type: "POST", url: "inc/enviar.php", /* endereço do script…
-
2
votes3
answers327
viewsQ: Error reading JSON with PHP
I am trying to read a JSON file in php with the following format: {"leads": [{"id":"1", "email":"[email protected]", "user": "[email protected]", "first_conversion": { "content": {…
-
1
votes1
answer548
viewsQ: Foreach with this type of JSON (PHP)
I am trying to display the values of a JSON with PHP more unsuccessfully. Code Used: JSON: { "event_name": "offline_message", "widget_id": "sEcXk3TXEw", "visitor": { "name": "ARTULITO BARBOSA DE…