Questions tagged as 'php'

1
answer

Intercept redirect page

I have a page whose customer is selecting items, once selected I needed to check if the client will leave the current page because I need to alert him with a message like "Do you want to save your cart before leaving the page?" if yes save and c...
asked by 08.12.2017 / 12:42
3
answers

What is the correct way to pass two or more parameters on the route?

I'm trying to pass two parameters in the route, however, I get this error:    "Route pattern" / tab / {id} / client / {id} "can not reference variable name" id "more than once." The route used: Route::get('/visualizar/{ficha_id}/{client...
asked by 28.11.2017 / 16:11
2
answers

Limit users in a PHP application

Hello, Developed a system in php controlled by Sessions .. I checked that you can limit the maximum number of online users on the system via apache (httpd.conf). Is there any function (ajax, javascript, php) that I can limit to 05 concu...
asked by 09.12.2017 / 13:49
2
answers

Mysql search data Save to PHP variables

I want to get the value of a query in mysql SELECT lamp_estado, lamp_descricao FROM lampadas ORDER BY lamp_id And record each value found in the search, in a variable. I am using this command but it is only writing the last search va...
asked by 02.11.2017 / 23:56
1
answer

Error with facebook login in php

I'm having a bad time connecting to Facebook using sdk php.: settingupfacebookdevelopers: codesnippet:loginfacebook.php Can you help me? Note: I'm still developing, so I use the same localhost.     
asked by 04.11.2017 / 20:00
1
answer

Redirect page with error message

Good afternoon, I have a question Is this command correct? http://localhost/site/index.php#contato?info=Email%20Vazio    index.php # contact? info = Email% 20Value This is the function that sends the command but the page is at t...
asked by 01.11.2017 / 20:15
1
answer

Transfer the keys and values from a JSON to PHP variables

How to transfer data from a JSON: {"resultado":true,"cadastros":[{"id":"12345","nome":"Augusto","idade":"30"},{"id":"23411","nome":"Carlos","idade":"93"},{"id":"13451","nome":"Bruno","idade":"23"}],"mensagem":"Success"} For variable...
asked by 02.04.2014 / 18:19
1
answer

Encode and decorate URLs

I have an application that I need to send links with user information, basic example below: https://www.meusite.com.br/[email protected]&token=token I want to encode the [email protected]&token=token part wh...
asked by 31.10.2017 / 00:44
1
answer

how to do a mysql query containing several id separated by commas

Good afternoon, how can I make a query where I have in my field idProduto several% com_dependent comma% and list each of their respective. For example, in my ids I have the idProduto I want that in my query it returns me wit...
asked by 22.11.2017 / 17:31
0
answers

Force sequence of methods to have your call in default value?

I have a framework that is basically used in the construction of forms and events HTML/jQuery with PHP , an example call: $VIDB_input = new \vidbModel\inputElement(); $documentos_date_action = 'triggered'; $documentos_date_conv =...
asked by 06.11.2017 / 16:29