Questions tagged as 'php'

2
answers

select pdo with oo

I have this class that manages the database: <?php abstract class database{ /*Método construtor do banco de dados*/ private function __construct(){} /*Evita que a classe seja clonada*/ private function __clone(){} /*Mé...
asked by 09.11.2015 / 13:18
2
answers

Sort array by key, being a string

I have a random array containing an alphanumeric sequence in its keys. Using the ksort function, I get the following result: array(22) { ["A1"]=> string(2) "A1" ["A10"]=> string(3) "A10" ["A11"]=> string(3) "A11" ["A12...
asked by 08.10.2015 / 16:32
1
answer

How to link tables that are in different databases?

I would like to know how I can link two tables that are in different databases in order to find data that is similar in both tables. For example, we can have the Purchasing to-do list table and Purchased shopping list table table, to end...
asked by 09.01.2018 / 08:35
3
answers

Deselect all checkboxes when returning to the previous page

I'm developing a software and noticed a flaw: when the user returns to the previous page, the checkboxes are still marked. How do I uncheck all of them?     
asked by 22.12.2017 / 20:33
1
answer

Is it possible to remove the first sequence of the last letter of the regex?

I need help with something very specific, which involves good interpretation, which is the following, I need to give a word in%% example% with% the last letter that would be regex to be extended until the first sequence of nt and s...
asked by 30.01.2018 / 19:21
2
answers

How to retrieve the value of an array

Well I have the following array that is inside a $resultado variable: {"result":[{"fone":"","email":"","id":1,"nome":"GERAL","token":"BE5DEA91EB28E98F053466E98082908545E3DCA5"}]} I need to recover the token. I tried this, but it d...
asked by 26.04.2017 / 15:18
2
answers

Keywords in pages

How can I insert keywords and even the title of my page in these "Pages that do not exist". For example, I made a pagination and my url changes as I change the value of url/conteúdo , the title and other keywords continue with the...
asked by 10.01.2018 / 12:23
1
answer

When changing any line of PHP, it gives 500 error (server)

Colleagues. I have serious problems with a particular server, from which only these errors happen. We have a system from which we change the directory and all the links are working perfectly and are in the root directory of the server. We've...
asked by 09.04.2017 / 22:56
3
answers

Concatenate Javascript with PHP

I'm trying to concatenate PHP with Javascript, but I'm not getting it. <button onclick="gravaDados('/" . <?php echo nomeCliente; ?> . /"')" class="btn-playpause">Play</button> Thank you     
asked by 11.08.2017 / 23:45
2
answers

Check string is contained in PHP Array

I have a function in cURL, its return is an indefinite amount of data, but its format is standard. Return: array(86) { [0]=> array(2) { ["value"]=> int(1) ["data"]=> string(27) "retor...
asked by 12.08.2017 / 23:59