Questions tagged as 'php'

2
answers

Take a value out of the Codeigniter query

I could not use the result thrown by a query of a model in Codeigniter as a parameter to be able to execute another query that requires the above information. Code of the model : public function datosuser($codigo){ $this->db...
asked by 11.02.2018 / 03:57
1
answer

Regular expression to extract the Amazon ASIN from a URL

I'm trying to extract the content of the ASIN code in PHP. And I have no idea what I'm doing wrong so that it does not return the string I want to extract. In this case, I want to extract the content only from the ASIN code ( B01ETRGE7M...
asked by 29.01.2018 / 12:06
1
answer

Include new field in query find () CAKEPHP

I have included a new boolean field in a wine table, dist_exclusiva , I have also created the field in the creation and editing form. I have the problem when the queries are executed, it does not pick up the new field, the query seems pred...
asked by 29.01.2018 / 15:31
2
answers

problems calculating percentage with array

greetings community I have a problem when calculating the percentage since now I use the input as an array and it does not work for me the minimum fields are 4 and the maximum fields are 14 I also have my function to add fields if I wish , but a...
asked by 29.01.2018 / 16:24
2
answers

Given the hash () of Python, does it exist similar in PHP?

I have a python script, which performs a login and pass, which is stored with hash in Mysql, with the following code: pass = hash(self.get_argument("psw", 'dato')) generating a hash type -5995266028892256335 Now I need to login from PH...
asked by 26.01.2018 / 12:54
2
answers

search sql query result in php array

I find the following problem: I have an array called $data2 and when making a query sql the result of it can be searched in the array, I'm working with checkbox so if the result of the query sql is in the array $da...
asked by 24.01.2018 / 23:16
1
answer

Error when logging in when completing the registration

Community, the error I have is that the user to have finished the registration process I want to log it at once without the need to go to a login page, the code I am using for it is the following: if(isset($_POST) && !empty($_POST)){ $...
asked by 13.01.2018 / 02:09
2
answers

Increase of two days for each month worked

I have a table of usuarios in a BD, where I have the following fields: id_ususario login passwd dias_disponibles (Los usuarios fijos tienen 24 días disponibles) fecha_ingreso (Fecha ingreso en empresa) tipo_usuario (Fijo o Temporal)...
asked by 14.03.2018 / 15:21
1
answer

How to make a repeater in wordpress with a row of two columns and another of three

Hello I'm wanting to make a repeater in wordpress but I had a problem with the diagram done in bootstrap. I attached an image of said example The code that I implement is the following: Although I assemble a repeater what makes me repeat the...
asked by 15.03.2018 / 19:20
2
answers

I get an error Call to undefined method PDOStatement :: store_result ()

This is the error    Fatal error: Uncaught Error: Call to undefined method   PDOStatement :: store_result () in   C: \ xampp \ htdocs \ helpProgramming \ core \ controllers \ searchWController.php: 44   Stack trace: # 0 C: \ xampp \ htdocs \...
asked by 29.12.2017 / 22:06