Questions tagged as 'php'

1
answer

How to do a select based on data from another table

I have to make the following adaptation in a query: Table app_usuários : id, nome, sobrenome, hash, sexo, interesse, latitude e longitude . Table app_likes : id, user_a_id, user_b_id Briefly, I have a query that...
asked by 28.08.2018 / 12:04
2
answers

How to put + of a domain in this code, different references

Hello, I have a code that works as a reference. In other words, if the visit comes from domain01.com, it displays: WITH REFERENCE if it does not display: NO REFERENCE Code: <?php if (isset($_SERVER['HTTP_REFERER']) &&...
asked by 16.06.2018 / 22:30
1
answer

How to create a placeholder when loading page content, same as facebook, youtube, etc.

This is a question asked on various websites, and before I came here, I asked a lot, even on the stackoverflow in English. Well the part of the placeholder in html and css is already ready, I got following tutorials on several sites, missing...
asked by 16.06.2018 / 19:51
1
answer

Incorrect method in form generated by CakePHP 2.4

My problem occurs with the following code: <?php echo $this->Form->create( 'Page', array( 'url' => array( 'controller' => 'pages', 'action' => 'delete', $this->request->data['Page']['id'],...
asked by 16.01.2014 / 17:19
2
answers

Login panel does not return the number of accounts

I'm creating a login area, but when I click the login button, it does not return any errors, for example: if the user does not exist I would like the number 0 to appear as the $num variable, however a screen page. PHP :      $co...
asked by 12.12.2018 / 23:41
3
answers

Function refactoring to collect constants with a specific prefix

I have a working function that aims to find and group in a matrix the constants that are declared corresponding to a certain prefix: Function: function get_constantsByPrefix($prefix) { foreach (get_defined_constants() as $key=>$valu...
asked by 18.12.2013 / 22:56
2
answers

Long Polling with mysqli does not return data

The data from the database's .php file does not return, if I change the whole data.php to any html text it returns working the long polling , but if I try to use mysqli it does not return anything. What can I do to correct this problem?...
asked by 09.01.2015 / 00:29
1
answer

Can I post to my own facebook using the API?

Can I make a post on my own facebook using the Face SDK? Can I read my feed with an SDK? the question is simple, I want to build my own interface to use my facebook profile the way I want.     
asked by 05.01.2015 / 14:13
4
answers

Integration Cielo By Page Loja

I have a problem that I have tried to solve in several ways, but so far nothing and so I decided to go here. I am implementing Cielo's payment solution , where the user performs the payment information in my own store, and then generated an...
asked by 18.01.2015 / 20:47
2
answers

Add strings to a regular expression

Good evening, I would like to find a way to add two strings inside a regular expression using php . Ex: $texto = " |5,00|7,00|| |10,00|2,00|| |3,00|30,00||"; ...('/\|(.*)\|(.*)\|/', '|$1|$2|[X=$1+$2]', $texto); I've been searching, bu...
asked by 21.12.2017 / 03:53