Posts by Leonardo Costa • 1,043 points
60 posts
-
1
votes0
answers549
viewsQ: deprecation Xmlhttprequest
I would like to know how to fix my code XMLHttpRequest, he’s giving me this message [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to…
-
0
votes1
answer123
viewsQ: how to send an image to php through a hidden input='file'
I would like to know how to send my <input type="file"> to the php through the ajax. I wrote the code but the same does not call the url php and does not return me error. html code: <button…
-
-1
votes1
answer49
viewsQ: Warning: Division by zero with dates
how can I calculate a date range for example: 24/08/2017 and 09/05/2017 and take the total amount of days? for example the result of this difference would have to give 106 days difference from one…
-
0
votes0
answers55
viewsQ: Html5 css3 element error does not stick to what was specified
how can I make so that the elements remain according to the first element of the column. because they are not as desired. in the first element I have two icones one of heart and one of check, but…
-
0
votes3
answers1895
viewsQ: how to call a php function through ajax?
how can I call my function PHP for ajax when a click occurs on mine span? I’m not able to call the function properly someone could help me? code HTML <span id="link" class="dropdown-toggle…
-
0
votes1
answer137
viewsQ: how to grab all images with foreach
how do I get all the img with the foreach and send by email, I put my function to send the email inside the loop but it won’t send me only the first and if I put the function outside the loop it…
phpasked Leonardo Costa 1,043 -
0
votes1
answer723
viewsQ: how to update the database using checkbox
would like to know how I can do an update with checkbox, with the system I developed I can get normal all checkbox that will be changed but I can’t catch the id of the respective how can I do this?…
-
2
votes1
answer1184
viewsQ: how to remove an append
would like to know how do I remove only the append which has been cleared by checkbox, for in my code when I select a certaincheckbox he adds a append of a img and when I click on it again it…
-
1
votes1
answer40
viewsQ: how to add an image only in the checkbox marked
I wonder how I can add an image with append only inside the span.abcd that is next to the checkbox marked. HTML <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"> <div…
-
2
votes1
answer708
viewsQ: how to block a jquery checkbox
would like to know how do I block a checkbox shaped like a boot of the bootstrap because I have it and do a simple check to limit in 2 or only 2 checkbox can be selected. when I select the third…
-
0
votes2
answers76
viewsA: Error of php --> mysql
and simple in your code this way $sql = mysqli_query("INSERT INTO usuarios (nome, sobrenome, email, senha) VALUES ('$nome', '$sobrenome', '$email', '$senha')"); exchange for this $sql =…
phpanswered Leonardo Costa 1,043 -
0
votes1
answer269
viewsQ: Help with urlencode function
how I can make this function besides putting + in the spaces put -, and that it changes the %7C for | would anyone know? only in url Below the Model of how this: would like that in the url something…
phpasked Leonardo Costa 1,043 -
0
votes1
answer62
viewsQ: Problem with mysql
I wonder what I can do for the mysql recognize the "+" character, because it shows in a part of my site the name with the "+" and when I make a request in $_GET I need to recover this name by url…
-
0
votes0
answers38
viewsQ: Is it possible to zip files with php?
I wonder if it is possible to zip photos with php, for example: I select 300 photos and these 300 photos when you click on the boot they will be zipped and sent in the email. it is possible to do…
-
1
votes3
answers222
viewsQ: How to prevent the edge from affecting child elements
how do I add edge to a img correctly because I am adding the edge to the img and it seems to get bigger than the others. I am adding by click using jquery when I click on img mark her with a 2px…
cssasked Leonardo Costa 1,043 -
0
votes1
answer206
viewsQ: Help with foreach error
I’m developing a system that needs up 2 types of img a small and a large for the database but when I send up 3 img small and 3 img great test my foreach does not go up all the img small or their…
-
0
votes1
answer55
viewsQ: Create dynamic border on an image after marking a checkbox
as I do for when I click on checkbox it dynamically mark an image with edge. I’m trying to do but it always marks all the img how could I do that. Note: mine img comes from the bank this all…
-
3
votes2
answers1453
viewsQ: as a tool to leave a FULL SCREEN slide
how do I leave a Carousel on bootstrap full screen for mobile devices because on the desktop it stays the way I want occupying the whole screen without leaving white space on the devices it does not…
-
-1
votes2
answers432
viewsQ: How do I compare a Session?
would like to know how do I compare a session one-page php with the ajax for the simple reason of displaying a alert most beautiful to the client the comparison I have and the following he compares…
-
2
votes2
answers1563
viewsQ: How do I email multiple people with Phpmailer?
I would like to know how to make the "to:" in the email corresponds to the field in the table, that is, for example I have two emails, an email is [email protected] and the bank’s other email is…
-
2
votes1
answer653
viewsQ: How to delete multiple clients by checkbox?
I would like to know how I can delete more than one customer as selected by checkbox. I have within a complete form: <form method="post" action="../sys/del.php"> <?php require…
phpasked Leonardo Costa 1,043 -
1
votes1
answer464
viewsQ: Does anyone know how to fix a website hosting error?
someone knows how to fix an error in the $stmt = mysqli_prepare($mysqli, $sql); mysqli_stmt_bind_param($stmt, 'i', $id); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); it does…
-
3
votes1
answer8046
viewsQ: how to add phpmailer hidden copy
How to send newsletter with hidden copy to customers, appearing only the email of the same that was sent? code: require_once("../phpmailer/class.phpmailer.php"); $mysqli =…
-
0
votes2
answers1588
viewsQ: How to submit a form by pressing "enter"?
Like I do a kind of click for a input without using button? For example, I will click on input type what I want to search for and when to press ENTER the form will be sent. How do I do this with…
jqueryasked Leonardo Costa 1,043 -
3
votes1
answer4528
viewsQ: how to decrypt md5 and sha1?
good would like to know how to decrypt the md5 and the sha 1 I am using both to enter the password of the user in the bank, however I have to make a page for those who forgot the password and if I…
-
2
votes1
answer1572
viewsQ: How to use mysql_result with Mysqli?
I’d like to know how to use the mysql_result in the mysqli I’m not getting it, I was looking at the site php.net and the only thing I saw was a mysqli_data_seek if anyone can help me... Code I’d…
-
4
votes1
answer7125
viewsQ: how to use mysqli_fetch_array
would like to know how I use this command mysql in my code because I’m trying and nothing I can’t make it work. code: $sql = mysqli_query($mysqli, "SELECT * FROM produtos LIMIT $inicio,…
-
-5
votes1
answer679
viewsQ: How to check if the login exists in the bank by ajax?
I made a login system with ajax and php in it I pass the login and the password that are in the database but I wanted to know what is wrong with my code because whenever I try to log into the site…
-
2
votes2
answers940
viewsQ: how to make a cart items counter
I want him to take my little cart and see how many products there are there he makes a kind of it that will run while he has products in the cart, more specific it will run by the quantity of the…
phpasked Leonardo Costa 1,043 -
0
votes2
answers667
viewsQ: how to go through all elements of a php array with javascript
how can I go through all the elements of a php vector in javascript because my javascript only takes the last name but my 'var_dump()' is receiving all how can I do this someone can help me? php…
-
0
votes1
answer610
viewsQ: shopping cart
how do I stop at the pagseguro he pick up all the products added at my checkout and pass to the of the pagseguro he is only passing 1 product does not pick up all that are at my checkout how can I…
phpasked Leonardo Costa 1,043 -
2
votes2
answers998
viewsQ: phpmailler error while sending email
how can I send more than one email with 'phpmailler' it always gives this error 'Mail error: You must provide at least one recipient email address. 'I am developing a newsletter system that will…
-
0
votes0
answers35
viewsQ: modal open only once while the page is not closed
how to do for when the page is reloaded the modal I created not open again, but when I close the page and open again the modal open again as I do it? <div class="modal fade" id="myModal"…
-
3
votes1
answer750
viewsQ: How to change the class of an element - Font Awesome
I have an icon of Font Awesome on which I am trying to get the element to be clicked, change the icon of fa fa-plus for a fa fa-minus and when clicking again, the icon goes back to the fa fa-plus.…
-
-1
votes1
answer495
viewsQ: how to save a post in the variable on the same page
galera and the following I have a field number on my page and I want to pick it up and send the value typed on the same page as I can get the value typed on the same page without using jquery or…
phpasked Leonardo Costa 1,043 -
0
votes1
answer106
viewsQ: Ajax code is not getting the value of inputs
I have a problem with ajax, which is not taking the data entered in the email form, despite sending the emails. Follow the form code: $(function(){ $('#nome, #email, #assunto,…
-
1
votes2
answers3085
viewsQ: Event for when the user leaves the page
Would you like to make a template equal to that of the free ratchet site. How could you do this? It consists of when the mouse leaves the page appear a alert wondering if the user really wants to…
-
6
votes1
answer3382
viewsQ: dynamic friendly url
as I do for my url that and so: detalhe.php?cat=1 look like this detail/television mine .htaccess : RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule…
-
6
votes1
answer1247
viewsQ: How to fill a star rating?
How to fill the stars of a "star rating". The calculation is apparently working. Giving an "echo" in the variable $calc the result is displayed. Example, if the note is 3.3, it must fill 3 stars and…
-
0
votes1
answer364
viewsQ: How to send form without refreshing the page?
I made a code that after selecting the radio button he sends to a page but he’s giving refresh and I don’t want it I don’t want it refresh on the page but keep sending and I also want when send it…
-
0
votes1
answer134
viewsQ: How to send a kind of form without boot?
good would like to know how to send a request to the database. in fact not a request but an insert for when I click on radio button he insert the value of radio button on the bench as I do this?…
-
1
votes3
answers358
viewsQ: how to use date interval to count days?
how can I use the date interval to count when registering a product, for example I register the product on the 8th I want that in 15 days this product will no longer be a new product or when it is…
-
10
votes6
answers992
viewsQ: Like saving today at the bank?
How do I automatically save the day in the database without having to pass it when adding the product or whenever you add a product it automatically already writes the date of the computer in a…
-
1
votes2
answers144
viewsQ: error help . htaccess
good people my question this time and the next I’m doing the system of url amigável in php I’ve already done the .htaccess that has remained so: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f…
phpasked Leonardo Costa 1,043 -
0
votes1
answer119
viewsQ: How to resolve this Session o_rdwr error?
How can I fix this php session failed o_rdwr no such file or directory The error occurs when I log in to the server, however, locally it does not give any error and usually someone could help me?…
-
0
votes1
answer175
viewsQ: How to get Hover in Sectioning?
I made a website based on a template and I’m having a little problem when I click somewhere, it goes down but it doesn’t give the effect of hover, it just gives that effect of hover in 3 section,…
-
2
votes1
answer78
viewsQ: How do I hide the container while uploading an image?
I would like to know how to hide the content and show only a gif of loading on the page. I was able to implement but the images keep appearing, how to solve this? My code is here: Here is the…
jqueryasked Leonardo Costa 1,043 -
-4
votes2
answers1623
viewsQ: Capture table elements with jquery
How can I click elements of a table that is being dynamically filled with jQuery? I want when it clicked pain to be marked only 1 row of the table. I only managed to mark all. Here when clicking on…
-
3
votes2
answers3190
viewsQ: how to make an event using the enter key?
I wonder how I do to make a system like the onclick or the click if it’s jQuery. When the user presses the key enter in a form it automatically click the button and send the form with the click. I…
-
-1
votes1
answer1517
viewsQ: how to implement jquery in php?
good afternoon my doubt and the following I want to put a custom jquery confirm Alert in php code but it does not run already tried everything already called the files and nothing if anyone can help…