Questions tagged as 'php'

3
answers

Post a comment and view follow without refreshment

Updated 5 Good morning, I'm trying to create a comment system that is equal to link > Here is the JavaScript code to send everything to PHP: $(function() { $('.commentform').submit(function() { var comment_publica...
asked by 05.05.2015 / 21:42
4
answers

Display date and time in PHP

I'm trying to display the exact time with PHP in the following format.    Date: YYYY-MM-DD       Time: 00: 00: 00: 000 <?php setlocale( LC_ALL, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8', 'portuguese' ); date_default_...
asked by 26.01.2015 / 18:35
2
answers

How to manipulate div size without using hover

   Edited - Although I have requested exclusively in css, I have seen that in fact the final result in JS is much more professional and lean. Being   so I confirmed @renan's response as the one that really helped.   However I would stress her...
asked by 06.05.2015 / 22:14
2
answers

How do I get the user language of the browser?

I have a website in 3 languages, EN , EN and EN . But on some separate machines when accessing the site by the browser is directing to page in English . This happens because of the code below that I developed to retrieve the user's brows...
asked by 17.08.2015 / 14:29
1
answer

Remote REST WebService in PHP receiving JSON via POST with problems

I have the following situation ... A pure javascript client application that runs with node.js, where I send via a JSON post, as follows: doLoad = function (livrosList){ var xmlhttp = new XMLHttpRequest(); x...
asked by 15.01.2015 / 00:01
2
answers

How to refresh page and not send duplicate data to the bank in PHP?

I would like to know if someone has an example or can explain me in the following question: In case the user refreshes the page, after submitting the first form, the data is not sent back to MySQL. My application is in PHP, I already resea...
asked by 03.03.2015 / 02:23
3
answers

Equivalent to LIKE in PHP

How do I compare two strings in PHP in the same way as LIKE in mysql. For example: "PARA" would be equal to "PARALLEL", "PARALLAX", "PARALLELEPIPEDO", "PARAMETER" ... because it has the same start. But regardless of form, I would like...
asked by 19.11.2015 / 18:33
5
answers

How can I add a value to a row in bd without having to add variables?

Well my question is like this: I have the row balance of a given user of my database table that has 100 €, and I wanted to add + 50 €, as I can do without having to create a variable with his current balance, plus a variable with the balance...
asked by 20.07.2016 / 15:33
6
answers

Same number of characters in the password after md5

I'm doing a process of opening a modal and registering a user. The user's password is changed to md5() ; After this the password gets with 32 caracteres . When the user is going to load the user data to do an update. If the...
asked by 18.11.2015 / 13:50
4
answers

Convert HTML into PNG

How to convert, via code javascript or php, the html ( DOM ) of the page being displayed for an image? I need the page shown to the user to be converted to an image file in png format so that it can be downloaded and started automatica...
asked by 05.10.2017 / 18:37