Questions tagged as 'php'

1
answer

My images do not appear in laravel

In a Project in Laravel, I want to upload an image. Like this <img class="logo" src="{{ asset('images/'. $pet->image) }}"> Since the images are in the public folder But, tell me this Failed to load resource: the server res...
asked by 27.01.2018 / 10:17
1
answer

PHP Create Api Rest with drivers in Slim3

I am learning the Slim3 framework to create apis rest / full, I found several examples, for example in routes.php $app->group('/v1', function () { $this->group('/auth', function () { $this->map(['GET', 'POST'], '/login', '...
asked by 06.12.2017 / 11:27
1
answer

Select max ID in PHP

I am doing a simulation of a codeigniter system which works with MVC. I'm trying to pass the last ID of my "users" table to a field called "user_id " from my table "clients" (Since they are related to an FK) and everything so that from a...
asked by 05.12.2017 / 23:43
2
answers

Get dates with mysql

I have a problem, I want to recover dynamically what happened seven days ago, and then what happened six, five and so on until 1 day ago. The problem is that when I do between the date accumulates the data, it does not bring me what happened exa...
asked by 06.12.2017 / 01:55
1
answer

PHP mysqli_query () It does not work

I am learning to connect MySQLi PHP with MySQL, I made this CRUD but it does not work correctly. Only works in table Alumno , but not in table Matricula . I already tried with mysqli_multi_query() and with different...
asked by 25.11.2017 / 00:20
1
answer

Error using file_get_contents in PHP7

When I upgrade from php 5.6 to php 7 I get this error:    Warning: file_get_contents (): http: // wrapper is disabled in the server configuration by allow_url_fopen = 0 php / admirss.php on line 26       Warning: file_get_contents ( link ):...
asked by 26.11.2017 / 10:56
1
answer

Javascript does not recognize "Certain chains"?

I have a button (MODIFY) that when you press it puts in an input type = text the input value of a form. It does fine with normal numbers , but not with numbers 1B: 3B: 3B: 4B: 5B: 6B or with 1C-3C-3C-4C-5B -6B It does not even ent...
asked by 02.12.2017 / 18:31
1
answer

Error in php Commands out of sync; you can not run this command now

I have already read a few articles, but I can not fix this error that I have. It is the first time I see this error, and I do not know how to solve it. Then using PHP and MYSQL to extract data from the database (use redundancy) and display them...
asked by 04.12.2017 / 04:06
1
answer

Pass a serialized object through a form

I'm trying to pass a serializado object to a form, to pick it up and not have to re-create it on the next page, but I do not print the string correctly in the input that I'm printing on. My code is as follows: class Objeto{...
asked by 04.12.2017 / 16:59
2
answers

array_push changes the values

link As you can see in the example array_push or array_unshift save [data] with the last value. <?php $filters = json_decode(strtolower('{"groupOp":"AND","rules":[{"field":"codigo","op":"cn","data":"ampolla 213"},{"fiel...
asked by 27.11.2017 / 12:12