Questions tagged as 'php'

1
answer

Update does not work in the database

Good folks, already made a topic here about this and resolved soon, but later I noticed that in arranging this problem I got another. Here's the code: <? error_reporting(0); require('cdn/inc/header.php'); if(isset($_SESSION['user_data']...
asked by 24.04.2015 / 23:38
1
answer

How to pass an Array to AngularJS?

array ( 0 => Pessoa::array ( 'nome' => 'Paulo', 'idade' => 15, ) app.controller('meuCrtl', function ($scope, $http, $timeout) { $http.get('ajax/getPessoa.php').success(function(data){ $scope.list = data; ......
asked by 28.04.2015 / 18:13
2
answers

Doubt MySQLi Paramento new_link

The old PHP function mysql_connect had the new_link parameter that allowed connection to several different banks in the same script : Example: $connect = mysql_connect($host,$user,$pass,$new_link); How does this work...
asked by 15.07.2015 / 17:13
1
answer

Privacy policy and browser blocking cookies

Hello, I put a user remember system in my program in php, I used cookies for this, as I found in Google an explanation about them, but I came across the following: IE and some browsers if not all today block cookies that do not have a privacy po...
asked by 12.07.2015 / 13:57
1
answer

Get value from a radius in jquery cakephp

In my code I have a radio and would like to get the selected option in a variable in my jquery function. Button Input: <?php echo $this->Form->input('attendance_status_id', array( 'type' => 'radio',...
asked by 09.04.2015 / 23:14
2
answers

PHP - problem with Unlink

Dear friends. I have the following problem that I can not solve. I created a routine to change images using the UNLINK function, but I can not. Change only the Data except the images, even putting the correct folder path, below I posted my...
asked by 12.04.2015 / 17:52
1
answer

How to send emails between users without limits?

Good People. I have a PHP application that manages certain types of meetings. In short, a person creates a meeting and this causes the application to send emails inviting other users to this meeting. It worked fine when there were few people, bu...
asked by 09.04.2015 / 15:11
1
answer

How to send message only to a user with WebSocket

I have a real-time chat application with Websocket , but at the moment it sends messages to the whole group, I would like to know how to send to a selected user, in the case when I click on user (from a list that appears next to it), he will st...
asked by 12.04.2015 / 23:44
1
answer

How to find previous value of PHP variable

I have a variable that has the rice value, shortly after receiving the rice value, it receives the value beans . How do I call the function's past value? Here is an example below: $arroz = "arroz"; echo $arroz; = arroz $arroz = "feijao"...
asked by 23.02.2015 / 10:48
1
answer

How to prevent a while to execution before finishing the task?

I'm having a problem while doing a query in a MySql database. This query returns me a lot of data, and this data is sent to make a comparison inside a while . Usually it is exceeding the time of my server ending the execution before doing...
asked by 19.02.2015 / 00:27