Questions tagged as 'php'

3
answers

How to make a script in php inserted in a page through a "require" run from time to time?

In the answers to the question of the link below I posted how I was able to delete from the database the information of the user that does not activate within 24 hours your registration through the link sent to your email: How to delete the...
asked by 22.08.2014 / 01:48
1
answer

How do I activate a user's registration by email?

Well, when registering the user has their ACTIVE set to 0, how to send an email with a link so that when clicking on this link the user will update the asset to 1.     
asked by 21.08.2014 / 00:38
1
answer

Convert string into array function

I need a function that converts this string into an array as follows 3:2,4:1,5:1 //string array ( [3] = 2 [4] = 1 [5] = 1 )     
asked by 23.09.2014 / 15:38
1
answer

How to save Cookies from a remote site with cURL?

I'm having trouble saving and reading cookies from a remote site I'm opening with cURL: $cr = curl_init($this->_URL); curl_setopt($cr, CURLOPT_RETURNTRANSFER, true); curl_setopt($cr, CURLOPT_USERAGENT, $u...
asked by 27.03.2015 / 08:25
1
answer

How to get a limited number of occurrences with DOM?

I'm doing parser for a website, I want to get some data from it, the data is structured as follows: <div class="interesses"> <span class="tipo" >Tipo 1</span> <span class="tipo" >Tipo 1</span> <span class="tipo...
asked by 27.03.2015 / 04:01
2
answers

Result of a function in an array

I would like to insert the current year into an array property of a class. I tried to use the date('Y') function directly in the property assignment, but it did not work. <?php class MyClass { public $myArray = [ 'te...
asked by 13.08.2014 / 22:19
1
answer

Jquery event.target does not work in IE8

Hi. I have a problem with IE8. The code below works in chrome and firefox, but not in IE. Once it arrives on that first line, the IE error says "expected object." What I have is an img within a div # prods. When clicked, this code tests [if w...
asked by 13.08.2014 / 23:18
2
answers

Query mysql does not work with variable - PHP

The query mysql works with normal variable, but not with the jquery post variable, for example: DOES NOT WORK $agenda=$_POST['agenda']; $query = mysql_query("SELECT * FROM 'compromiso' WHERE login LIKE 'alanps' AND agenda LIKE '$agenda'...
asked by 14.08.2014 / 03:44
2
answers

How to insert caption with quantity

Hello. I have a highcharts graphic and I need to enable caption with quantity so it makes it easier to preview at the time of printing because the quantity is only showing up when I mouse over and the quantity does not print. <html> <...
asked by 13.08.2014 / 20:38
2
answers

Modal window with database contents

I even know the PHP and Javascript, the problem is that I do not know how to dynamically create the modal for each click on a link, bring specific information from that link. If you click user 1 , bring information in the modal window of user 1...
asked by 10.09.2014 / 02:49