Posts by the flash • 943 points
45 posts
-
-3
votes1
answer35
viewsQ: Check if ip is already registered in the database
The code lowers checks if the user’s ip is already registered in the database, but it keeps sending the information that the ip is free, even though it is already registered in the database. $ip =…
-
0
votes0
answers67
viewsQ: How to change function explodes to import file . txt using colon
How to do the function: explode(',', $linha); import a . txt file separated by two dots in a . txt file instead of using the comma. The file . txt is currently this Cesar, [email protected], cesar,…
-
-1
votes1
answer49
viewsQ: How to change the contents of a variable every 30 minutes
The code below causes the e-mail to be sent specifically to a particular e-mail specified in the variable $email_remetente and basically if the time is greater than specified in the function:…
-
0
votes1
answer331
viewsQ: How to limit the number of decimals in javascript?
I have a function to change quantity in the shopping cart and I need to limit the number of decimals, because if I add more than 2 units the value is like this: 89.69999999999 Example:…
-
0
votes0
answers36
viewsQ: How to limit sending email every 24 hours?
In a way that was done by javascript and saved directly on the client side and not by the server? <?php // UTF-8 header('Content-Type: text/html; charset=utf-8');…
-
0
votes1
answer37
viewsQ: Send to different email according to time of day
How do I send an email form to two different emails according to the time of day. Example: From 00:00 until 11:00AM the e-mail is sent to a certain e-mail and from 12:01PM until 23:59PM the e-mail…
-
0
votes1
answer342
viewsQ: How to change text of an html table according to the result
I am making a table in html and wanted to change all texts according to a result. For example: If in the table it appears as 1 it means that it is in use, then make the change and replace the number…
-
0
votes1
answer388
viewsQ: Start css animation in div only after opening menu
I am having doubts about starting a CSS animation only after opening the menu in the +OPEN MENU option. The animation will occur in the element <div class="product"></div> Example link…
-
2
votes1
answer722
viewsQ: Close modal window when user click anywhere outside modal
I’m using a plugin from a modal window, but I’m not getting the modal window to close. Example of Jsfiddle: https://jsfiddle.net/2kag95en/ (function($){ $.modal = function (el, options) {…
-
0
votes1
answer77
viewsQ: Input buttons and <a> class buttons do not work
I’m using a plugin from a modal window to make a simplified shopping cart for the customer, only the buttons select the paypal or paypal as a form of payment do not work at all. If I click the…
-
0
votes1
answer1369
viewsQ: Uncaught Typeerror: Cannot read Property 'addeventlistener' of null
I am using a script from a modal window, but is causing the error and Error Uncaught TypeError: Cannot read property 'addEventListener' of null and error: at Array.forEach (native) Complete code: (…
-
0
votes1
answer392
viewsQ: How to keep menu open after :active
I have a menu made exclusively with css and html. When clicking the button it opens the menu, but if I release the button it disappears, to keep the menu open I need to be holding the mouse button.…
-
0
votes1
answer10990
viewsQ: Change text of a div after clicking the button
I’m completing the design of a mini shopping cart. My question is, how to make clicking a button change the title and price of two Divs. And another, how to change the payment button according to…
-
0
votes1
answer30
viewsQ: Paypal buyer’s email returns in incorrect format
Hello, I have an Ecommerce and am implementing some changes including the express checkout of paypal, the api I am using is the one provided by paypal. The problem is that when returning the data…
-
0
votes2
answers964
viewsQ: How to send an email after a new mysql registration
Hello, I have a table in mysql basically in this format. id transaction_id name buyer_email transaction_date paymentstatus 1 989Y8DT8S65DS Test [email protected] 17/02/2016 Completed My intention…
-
2
votes2
answers43
viewsQ: Sum of tables according to session id
What I am doing is the sum of the number of tables according to the id of the user who is logged in, the way I am doing no value is demonstrated. Bench: id id_affiliate user_ip date 1 2 162.70.25.00…
-
1
votes1
answer934
viewsQ: Input required attribute does not work after using jquery
Hello, When using jquery to disable the Submit button after being sent once the required attribute in input no longer works. HTML <form id="ajax" action="#teste" method="POST"> <p…
-
0
votes2
answers3914
viewsQ: Send message on the same page after form Ubmit
I have a form included within a modal window. My question is how it should be done to appear a completed sending message within the modal window after the form is sent, all this process would need…
-
0
votes1
answer4157
viewsQ: Change color of a <td></td> of the html table according to php condition
In a table generated from database data, you would need to change a to certain colors of a <td></td> if the field value ipaymentstatus in the database is as: completed, pending,…
-
2
votes2
answers141
viewsQ: How to hide a div only in firefox
Hello, In what way is it possible to hide a <div> only in Firefox and display in other browsers?
-
2
votes3
answers5783
viewsQ: How to avoid duplicate registration in a php form
I would like examples of how to prevent email from being duplicated if a user tries to register multiple. <form action="processar.php" method="POST"> <input type="text" name="nome">…
-
1
votes1
answer670
viewsQ: Repeat query with javascript
I am needing to update a div constantly and however this code below only updates once, I would like instructions on how to update it always at a certain time so that the same action is repeated…
-
2
votes1
answer1143
viewsQ: Generate XML from php mysql database after query
How to generate an xml file from a database after a query and then automatically download?
-
9
votes5
answers38375
viewsQ: Convert date to dd/mm/yyyy format
I’m getting two PHP post of two dates in format dd/mm/yyyy, however to display the data need to convert dd/mm/yyyy for yyyy-mm-dd. Code: if (isset($_POST)) // Se existir o array post, pq ele não…
-
1
votes1
answer148
viewsQ: Condition in Mysql for data query
Is there any way to make a condition to demonstrate data only if the status be as aprovado in the database? Mysql: Nome ProdValor Data Status Goku 250,00 15/04/2015 Aprovado Goku 250,00 15/04/2015…
-
0
votes2
answers195
viewsQ: Toggle "a" href by clicking on other elements
I have two payment selection buttons where when selecting a button, a third button to finalize the payment has your href changed, according to the chosen option. Demonstration in the codepen:…
-
3
votes3
answers3234
viewsQ: Browse data from 1 day to 3 days ago mysql
I’m trying to demonstrate records from the last 3 days, but it should be subtracted two days and only demonstrate the value of a single day before the 2 days, currently I have the following code…
-
1
votes2
answers1461
viewsQ: Check last records per hour
I’m having doubts in extracting data from the last hour of the mysql database, the code below makes the sum of values in the table for the last day, more relating for the last hour I’m not able to…
-
3
votes2
answers323
viewsQ: How to get server CPU load
I’m looking for ways to get the server CPU load, previously used scripts where there was the function exec() that on this other server has the function disabled by security. There would be another…
-
5
votes1
answer403
viewsQ: Problem summing column values and displaying in highcharts
I have the table: numitens | data | email 1 | 01/01/15 | [email protected] 1 | 01/01/15 | [email protected] 2 | 01/01/15 | [email protected] 1 | 02/01/15 | [email protected] The format you…
-
0
votes0
answers235
viewsQ: Redirect to a URL from the user’s browser
How to redirect to a given URL from the browser the user is using? I have a SSL problem that occurs only in Firefox, hence I would like to do the following: when accessing the site https://, detect…
-
2
votes1
answer101
viewsQ: Am I connecting the bank with PDO the right way?
There are several ways to connect to the database, but I opted for PDO. I’m doing it the right way? date_default_timezone_set('America/Sao_Paulo'); $pdo = new…
-
15
votes3
answers6360
viewsQ: What is Google Polymer?
I saw some recent studies on foreign websites about this Google Polymer, but still not understood where it should be used, for example in a mobile application. I could not find Brazilian blogs or…
-
1
votes3
answers823
viewsQ: Do not receive the POST data
I am trying to generate the login according to the database data and proceed to the page restricted to registered users, but there is incorrect password error. Front-end: <div…
-
1
votes1
answer352
viewsQ: Real time server load
Using the script below I am able to visualize the cpu load, but I’m having doubts in the part of updating the value in real time, I made a small gambiarra using html to refresh the page after 50…
-
2
votes2
answers2929
viewsQ: Open tab after loading
I am thinking of doing this using jQuery and I used some methods already available on the internet but they are not working. I tried to modify it more I think I’m doing it the wrong way. What I want…
-
2
votes2
answers13368
viewsQ: Number of "bound variables" does not match the number of "tokens"
I made some changes to the script and is generating two errors: Warning: Pdostatement::execute() [pdostatement.execute]: SQLSTATE[HY093]: Invalid Parameter number: number of bound variables does not…
-
3
votes1
answer3622
viewsQ: Html5 audio player customization
I come with your doubts for some time, there is some possibility of customization of the player audio Html5. So far I know that there is possibility using plugins developed in javascript, but this…
-
0
votes1
answer1037
viewsQ: Run next audio in javascript
I have a question about how to list the next audio using javascript, ie finishing a song will already be listed next. I currently have the following code: function loadPlayer() { var audioPlayer =…
-
3
votes1
answer2104
viewsQ: Real-time values in the input type="range" class
Well, I tried to do the values in one input type="range" demonstrate in real time to the user to select more I’m not getting. with jquery is also the same just by dropping the mouse from the class…
-
8
votes2
answers8320
viewsQ: Redirect https website to http
I currently have a site where uses an SSL certificate, as the certificate has expired and it needs to be renewed, SSL error occurs in any browser making users' visits impossible. I’d like to…
-
0
votes1
answer120
viewsQ: Is it possible to customize the Apache directory?
It is possible to customize the Apache directory where the files sent to the server are listed?
-
-1
votes1
answer339
viewsQ: Convert to decimal number
I have a script that calculates the total values and then demonstrates the total value in an echo. The problem is that the value is demonstrated without colons or commas, ex: 82700 to: 827.00 would…
-
0
votes1
answer786
viewsQ: Highcharts library does not show data
I have the following code in PHP, this code causes you to search the Mysql data and show in a graph in the HTML view. The problem is that the data is not shown on the screen for viewing the end…
-
3
votes3
answers2423
viewsQ: Calculation of growth percentage
I have three columns that would be month, recipe and expenses. For example: Mês | Receita | Despesas Janeiro | 2500 | 1000 Fevereiro | 1000 | 500 I would like to demonstrate the percentage of growth…