Questions tagged as 'php'

5
answers

Problems with accents and characters in JSON?

I am developing an application on android that gets data from a JSON that looks like this [{ "title": "Titulo", "image": "Imagen url", "op": "op", "autor": "Autor", "fecha": "Noviembre 15, 2016", "nota": "ejemplo de nota" }] The problem is...
asked by 16.11.2016 / 02:09
1
answer

I can not generate the view of the posts in CodeIgniter

I follow this video: link Clicking on the individual posts does not load my view and I get this error:    "An uncaught Exception was encountered       Type: Error       Message: Call to undefined method Post :: getPostById ()      ...
asked by 01.09.2016 / 21:31
2
answers

How to use $ http.post and $ http.get in the same function?

A few weeks ago I started using AngularJs for an application of the typical administration style. My question is this: I use it with PHP, using the method $http.post sent the parameters to a file 'file.php', who takes the variables...
asked by 23.09.2016 / 00:48
2
answers

Warnin of sqlsrv_fetch_array () expects parameter 1 to be resource

I'm going to the point, I'm doing a search engine and when I put certain names or data, the results are shown, the problem is with some others where nothing is shown and it shows me the following warning    Warning: sqlsrv_fetch_array () expe...
asked by 13.09.2016 / 22:12
1
answer

Laravel primary key

How can I change the primary key in laravel by default? <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddSubcategorias extends Migration { publi...
asked by 01.06.2017 / 01:23
1
answer

Laravel Builder could not be converted to string

I try to update two tables Meter and Order Installation , edit method receives the ID of the installation order, which is supposed to get the meter number, actually if I do dd ($ idmeter); the number is shown, but when I try to get the Met...
asked by 25.05.2017 / 01:01
1
answer

How to capture the id corresponding to the selected row from a Datatable?

I want to be able to capture the id corresponding to a row in my Server-side processing datatable , in order to delete and update the records, for now I only have the power to delete and it is that I am stuck in an error that when I...
asked by 01.06.2017 / 15:52
1
answer

Problem login validation messages Default LARAVEL 5.2

I am trying to make a custom login module based on the default login (Route :: auth ()), but somehow, the messages corresponding to a 'required' validation rules appear, in both fields, email and password, the problem is that I do not know where...
asked by 09.06.2016 / 19:51
2
answers

Get "unixtime" unix time in Java (Android)

The function time () in PHP is the number of seconds since the Unix Era (1 January 1970 00:00:00 GMT). Example: 1465491771 In java how can you get the equivalent value to Unix Time?     
asked by 09.06.2016 / 19:06
2
answers

problem in mysql nested query in php

I am making a nested query to the moodle database, because I am working with your data, the problem is that when making the nested query, it does not return anything, even the common result that the arrays return when there is nothing that is []...
asked by 28.05.2016 / 03:44