Questions tagged as 'php'

1
answer

Store products that appear in a php file in a .scv or a .txt separated by commas

Good morning, I am doing a virtual store with php without databases and I have a problem. As you can see I have a table with the products. Since there is no database, I have to store this data in a file as an array and I do not know how to do it...
asked by 29.11.2018 / 10:47
1
answer

how to access a view by means of a token

I do not have much knowledge of token but how can I access a mvc view with a token? What I want to do is that as I am going to relate 2 systems in my system 1 I have my pdf and I want to see that same pdf in system 2 but if I am logged in in sys...
asked by 22.11.2018 / 23:44
1
answer

Return result to an input value in action to another php file

I am looking for that when processing in response.php it returns the value to the previous page to locate it in the input. I think this could solve it using $ global but I do not understand its operation much and I already read that it is not ad...
asked by 01.12.2018 / 19:29
3
answers

Syntax error when updating data in MySQL

I'm trying to update a user's data in mysql. Someone can identify me why I get the following error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'di...
asked by 30.11.2018 / 10:04
2
answers

Add days to object type DateTime

I have a DateTime date: $entrada = new \DateTime($request->get('entrada')); I need to get another date of the same type added n days.     
asked by 07.12.2018 / 17:55
1
answer

Error with arrays - Undefined offset: 2 in Laravel PHP

I have a problem trying to save arrays in a table in my database. I have the code in this way in the store() function of my controller: try { foreach($request->horario as $id_horario=>$row){ foreach($row['check'] as $...
asked by 12.12.2018 / 19:30
1
answer

Error jQuery 500 when executing a GET

I have a small script that calls a PHP file but it does not work for me, it throws 500 error by the Chrome console ... The idea is that when you select an element in a textlist, then execute the PHP code and print it inside a table that has i...
asked by 13.12.2018 / 05:14
1
answer

Class only deletes a record with IN clause (Array)

From a shipping form $_POST['seleccion'] that is a list of codes, the amount varies depending on whether it is selected in the form. In the controller I separate the codes and invoke the class: $eliminar = implode(',', $_POST['seleccion...
asked by 11.12.2018 / 21:54
1
answer

AWX and PHP via API

I wanted to know if there is any way to have the following structure: An ansx awx server with playbooks already inserted. A web environment that accesses this awx server through an api. Is it possible for this connection to be made by p...
asked by 27.11.2018 / 14:05
2
answers

Get an answer with AJAX jQuery, it's not going to succes!

I make this query from jQuery AJAX, because I'm doing a PHP, AJAX, JQUERY test, The issue is that I try to make a request to the server to send data from the user fields and password but when sending the data, I'm always going to error instead o...
asked by 28.11.2018 / 01:41