Questions tagged as 'php'

4
answers

Browse json array with php

I need to go through this array and extract the data heartRate and deviceNumber in separate variables. { "bodys": { "bikeArrays": [], "heartRateArrays": [ { "heartRate": "88", "deviceNumber": "302831" } ] }, "status": 1 } El codigo que estoy...
asked by 27.06.2018 / 18:12
1
answer

Get id of a form created previously to relate it to another LARAVEL 5.5 table

I write here because I have this doubt, maybe it is silly but I have not managed to solve it .. I have two related tables REVISION and RISKS , the relationship is 1 review has many risks , and 1 risk belongs to 1 revision , I already mad...
asked by 29.06.2018 / 13:52
1
answer

Session php for book cart

Good morning. I am programming a book cart from a database of books using php sessions. There is very little left for it to work but I'm stuck because the cart does not pick up the added books. I do not put the complete forms only the shipments...
asked by 29.06.2018 / 04:16
1
answer

Make inquiry Httpclient Cakephp

I am making a specific query to a value, I have a group of articles and I want to see only one article. Seeing the Cakephp manual shows me this but I do not know how to use it. $response = $http->post('http://example.com/api', http_build...
asked by 29.06.2018 / 15:15
1
answer

PHP How to get the name of a variable file?

I am trying to import an excel book in PHP but the name of this file is changed every day. $nombreArchivo="/Carpeta/archivovariable.xlsx" Is there any code to add in the path such as "%%" or "*" so that the file is imported without importin...
asked by 30.01.2018 / 22:40
0
answers

Error sending PHP request, C #

I am developing an application in C # that connects to a web service but when I try to send the data via POST I get an error in my application in C #:    System.Net.Http.HttpRequestException: Error sending the request.   --- > System.Net.W...
asked by 09.05.2018 / 13:01
2
answers

Do not show certain records in an sql query

I am making a system of online courses, and in the list of all courses offered to the public I would like to ignore what the user in session has already purchased. I have two tables that are: Courses: |-----------|---------------|-----...
asked by 09.05.2018 / 03:47
1
answer

Undefined offset in PHP

Let's see if you can help me that for many laps I give, I can not find the error. The attached code returns me:    Notice: "Undefined offset: 0 in   /var/www/vhosts/16/181528/webspace/httpdocs/sur-madrid.es/alumnos/Richard/Marcas/Administrato...
asked by 09.05.2018 / 08:59
1
answer

Show only one option

First I enter two values, then I must show the missing value on another screen. How can I make it so that it only shows me a result? <!DOCTYPE html> <html> <head> <!--sen--> <title>formulario2.2</title&...
asked by 26.04.2018 / 04:40
1
answer

how to obtain values in a MULTISELECT using JSON?

I have a dni field and a multiselect technology, in technology I added a function to show it with check boxes () which I want to show through JSON, but I do not drag anything, I was thinking about adding an ajax inside the function , but I would...
asked by 26.04.2018 / 17:14