Questions tagged as 'php'

1
answer

Change MySQL column information with UPDATE

In summary through PHP below I can send the specific information already registered in the column in the BD, but in addition to just "emitting" the data there, I would like a function that would change such information without changing the page...
asked by 26.12.2014 / 18:36
1
answer

What is the best way to make an AJAX request in WordPress?

When I make an AJAX request in WordPress I do it in two ways, but I'd like to know which one is best. The two that I know of are: 1º) You put your function in functions, eg: add_action('wp_ajax_nopriv_my-function','my_function'); add_act...
asked by 01.11.2014 / 21:35
1
answer

Use finin or pathinfo to get the mime type?

finfo_* and pathinfo are used to detect the mimetype of the file and not the extension. The issue is that in the world there are several file formats and from time to time new formats appear, I can not do a test to know wh...
asked by 27.05.2015 / 02:10
1
answer

Change CSS with session and misaligned divs

In general, how to change the CSS property of some tag depending on the user's access to the system? Below is the image of the header (draft) before the user accesses the system: Andbelowthesameheader,butwiththedivsofthemisalignedbuttons(d...
asked by 27.05.2015 / 04:58
1
answer

Decrease responsibility of a class

Recently I had the need to work with object-oriented sessions and created the following class: <?php /** * @author Mateus Demboski <[email protected]> * @link <https://github.com/mateusdemboski/PHPsessionManager> */ #...
asked by 28.05.2015 / 15:09
1
answer

Creating Points in Google Maps with PHP Data

What I need I need to be able to receive locations from within PHP and tag them as points on Google Maps. What I did I created a part in Ajax to call the script in PHP that does the query and returns the json. He receives the data. He i...
asked by 03.12.2014 / 19:49
1
answer

Upload only with jQuery.ajax and PHP

I would like to know if you can upload a file using only $.ajax({...}) without submitting submit of the form and if, like? Note: I would like to put this script in the onchange event. Obs2 .: If possible I do not want to send...
asked by 03.12.2014 / 21:55
2
answers

Help with e-mail form with PHP Mailer

I'm having trouble sending messages through my hosted UOL Host website. They require sending through authenticated SMTP. I'm using PHP Mailer. The form worked but stopped working. contact.php <form name="sentMessage" id="contact...
asked by 16.12.2014 / 14:30
2
answers

Site images do not appear on your iOS iphone or tablet

On the site: link the images do not appear when accessing iphones or ipads, I suspect it is because of this php code that resizes the original image: <a href="?page=item&prod=<?php echo remover($exeprod['produto']);?>"> &l...
asked by 27.08.2014 / 17:59
1
answer

Update in multiple lines SQL server 2008 + PHP

How can I do multi-line updates with PHP on the sql server? I have a structure similar to this, but with many lines: ID nome vencimento 11 | Joao | 20/02/2014 12 | Arthur | 21/02/2014 13 | Ana | 22/02/2014 14 |...
asked by 21.08.2014 / 13:55