Posts by Cleverson • 637 points
35 posts
-
0
votes1
answer31
viewsA: Compare the current date to the due date and fire an email if Expired!! - PHP Javascript
To send emails use the function mail() php here. To send more elaborately there is the Phpmailer library available here In both cases you will need to study how to use both. As the form of…
-
1
votes5
answers54
viewsA: Close modal after saving to Bank
What I’ve noticed is that you’re wearing $('ModalNovo').hide() but in accordance with the documentation of Bootstrap the event to close the modal is $('ModalNovo').modal('hide') to display…
-
1
votes1
answer84
views -
2
votes3
answers155
viewsA: How do I play an input value without submitting a form or button
Francis has a prayer that what you want to do the way you’re trying to do doesn’t work. You’ll have to take a look at $ajax jQuery and include it on your page. You’d be wearing something like that…
-
0
votes2
answers175
viewsA: How to call a modal using javascript or another language that works within HTML?
Looking at the code itself, initially you are not escaping code correctly from PHP. See that: echo "<script> document.getElementById("btnModalCategoria").click(); </script"> is different…
-
1
votes0
answers84
viewsQ: Javascript popup does not work on IE11
After migrating to windows 10 and IE11 my popup stopped working. I can not say what it is, I searched and found nothing. On machines with windows 7 and IE7,8 still working normally. Important input…
-
0
votes2
answers1828
viewsA: How to save data from a form automatically?
William I don’t fully understand what you want, but I’ll try to help you with what I know, in case it’s not quite right let me know that I edit. I use to $.get in jQuery itself $.get("local.php",…
-
0
votes1
answer120
viewsA: javascript standalone data input
Denilson, I already used this but with jQuery and Masked, very practical and will serve you for several other text formats, dates and etc... Download jQuery and Masked on jQuery’s own website.…
-
0
votes0
answers91
viewsQ: Change Guide selection(Tab) in Chrome
I did some research, and I couldn’t find alternatives to the question. I was wondering if it’s possible at JavaScript or PHP change the selected tab in Chrome. For example there is a tool that…
-
0
votes1
answer289
viewsA: PHP Problems with Bars
I could not understand how it works, but replacing fgetcsv with the data below solved: ($data = fgetcsv($base, 0, ';' , '"' , '"') So reading the csv file does not break, after that I just…
-
0
votes1
answer289
viewsQ: PHP Problems with Bars
Guys I did some research but I couldn’t find anything assertive about the mistake I’m having. I’m inserting a csv file into the database, but the backslash has bugged the column separation too much,…
-
0
votes2
answers950
views -
0
votes1
answer44
viewsQ: Problems with $.get and PHP
Gelera, I’m hitting myself a little hard to figure out what’s going on with a code I put together. I have a loop that downloads files .csv from a server specific to my server. There are 9 files.…
-
0
votes1
answer196
viewsQ: PHP Receive data from a CSV via URL
Good morning, I need to know if it’s possible to do fgetcsv() using the temporary of a file .csv coming from a url. The reason to try this is due to the fact that Chrome does not overwrite saved…
-
0
votes1
answer121
viewsQ: PHP Display only the nearest result
Good morning everyone, I didn’t know exactly how to put the title, nor how to research it. I have a if else in PHP that says that if the result is not found at first, it will try to find a similar…
-
2
votes2
answers511
viewsA: How to activate an event from a class change
Haykou just formalizing the answer, as his code already works as you wish, missing only the Current validation and background exchange, follows; Script var $divs = $('.box').children(".teste"),…
-
0
votes1
answer57
viewsA: How to show a block field a word according to certain parameters?
From what I understand you want to validate using the block, see if it fits using jQuery itself. It is very simple and very easy to understand, but if you need some feedback from PHP warns, because…
-
0
votes2
answers65
viewsA: Calculation in % between PHP time loads
I got the result by converting the charges to seconds, using the date_paser(); $date1 = strtotime($ponto_inicio); $date2 = strtotime($ponto_fim); $realizado = date( 'H:i:s', abs( $date2 - $date1 )…
-
1
votes2
answers65
viewsQ: Calculation in % between PHP time loads
I need to calculate the achieved adhesion between two hours. Charge 1: Charge is the end time - the start time Charge 2: Scheduled load is the scheduled end time - the scheduled start time. at the…
-
0
votes2
answers37
viewsA: Count Out of a Ranking
If I understood the question I would ask differently: I would use the assoc() to associate the columns and print only the column with the name of the movies, sql will already do the sort: PHP $sql =…
-
10
votes2
answers559
viewsA: How to show the smallest age between 3 ages with Javascript?
Just adding a detail to Sergio’s example, for what he requested in proofs to compare via if else can use a function of Javascript same, the Math.min() ou Math.max() minimum and maximum. Following…
javascriptanswered Cleverson 637 -
3
votes2
answers2638
viewsQ: diff, date_diff, abs - PHP date calculation
Good afternoon everyone, there are plugins in both Javascript and PHP for calculating dates, I as I did not know how to calculate durations in PHP chose to do this work in the same javascript and…
-
2
votes3
answers222
viewsA: Displaying disabled checkbox value
Here’s an example in jQuery if you want to apply in your study: *You can modify the validations of if else for your need to display alert. HTML <input type="checkbox" class="check" value="1"/>…
-
2
votes3
answers303
viewsQ: Convert date difference to string
I’m calculating in PHP the difference between two datetimes (beginning, end), from a POST, need to fill out a campo(time) in the format(H:i:s) via INSERT in the MYSQL. I get the result of the…
-
2
votes2
answers93
viewsA: Embed link to search box redirect
From what I understand you need only concatenate the typed link + its url, I believe the javascript itself does this: HTML: <input type="text" id="link" /> <button id="ir"…
-
0
votes2
answers3659
viewsA: How to send data from a form without the Submit button and without updating the page
These are the famous Selects, via jQuery. I’ll explain and have an example working on it: include jquery in head: <script…
-
0
votes1
answer2976
viewsA: How to style a CHARTS in height, width and proportion?
The right canvas to use width="" instead of style="". So it would be: <div id="x_content"> <canvas id="lineChart" width="1200" height="350" ></canvas> </div> x_content you…
-
0
votes3
answers47
viewsA: PHP data in Javascript document
John I use a similar graphics plugin, but the application is the same in your template also follows my example: [<?php $sql = "SELECT..."; $result = $conn->query($sql); if…
-
0
votes3
answers131
viewsA: Why am I only getting the first word from the database field?
Augusto is correct add yet echo '<input type="" name="" value="'.$row['name'].'" />';
-
1
votes2
answers543
viewsA: Problems with php characters, with utf-8. How to solve?
You can also use mysqli_set_charset($conn, 'utf8');
-
0
votes1
answer77
viewsQ: jQuery load access denied
I am facing a problem already known by many, in IE it is possible to use Activex to get the user logged in to the network. In Chrome this is not possible and after many searches I got the same…
-
9
votes9
answers13997
viewsA: How to create a website without reloading every click on a link?
**This answer has been rewritten for better understanding. The issue itself is to exchange the information or even make posts in PHP without using the Forms (which usually reload the pages or direct…
-
3
votes5
answers631
viewsQ: If Else with functions
It is possible to use a if-else with function "Function();" example: if (a > 1){function Save();} else {function NoSave();} I just need to know if functions are loaded into the head work within…
-
0
votes3
answers2122
viewsA: Is it possible to create a Javascript database?
Dear, after a few hours I managed to develop a code let’s say simple in javascript. I don’t know if it’s really functional, but it matches what I need. 1 - It works like this: HTML has an input that…
-
6
votes3
answers2122
viewsQ: Is it possible to create a Javascript database?
How to create a simple database without using a server? I believe the answer would be no, but check the following: I’m at work and I don’t have access to the databases or even the servers. This way…