Questions tagged as 'php'

1
answer

Why do not I get the error message in the login?

                        extract($_REQUEST); try { $conexion=new PDO("mysql:host=localhost; dbname=restaurante", "root",""); // Línea idonea para informarnos error de la excepcion. $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO...
asked by 08.08.2017 / 21:38
1
answer

Block navigation between folders when viewing a file uploaded to the Server

Good morning community, Well my question is that I have a small problem when viewing a PDF file that I uploaded to the server through PHP, because, if I say I have this URL: repository / Uploads / Files / archive.pdf And if I try to na...
asked by 08.08.2017 / 14:49
1
answer

Fatal error: Uncaught Error: Call to a member function get () on null

I have been with this problem for a little more than a day, I checked the possible similarity of my question with others, but the truth, none of them worked for me. I'm having the following error in PHP: Fatal error: Uncaught Error: Call...
asked by 05.08.2017 / 15:00
1
answer

How to call names in php from a database?

Good afternoon friends I have this code in HTML (it's just part of the whole code) and even with a database, I would like to know how to say "Monica", "uzziel", "Andres" could bring the names that I have registered in my database. A if I have...
asked by 07.08.2017 / 23:53
1
answer

Ajax with jquery in Symfony

I have the following code: On the route I defined it like this: ajaxordersku: path: /ajaxordersku defaults: { _controller: AppBundle:Admin:orderskufororderid } methods: [GET] In the controller that you belong to the path defi...
asked by 04.08.2017 / 22:16
1
answer

Add image to my DataTable

I adapted a pagination and filtering for a db of the work, but it has a column of images that will be sent from the form, but when I open it I see all the fields well and in the photo just the image path comes to me I have not found how to corre...
asked by 07.08.2017 / 11:55
1
answer

ajax.reload () DOES NOT work

I am working on a project for the institute but I can not make it through ajax the DataTable is reloaded after inserting the record in the DB and in the console this error is generated: Uncaught TypeError: Cannot read property 'ajax' of undefi...
asked by 22.09.2017 / 01:15
1
answer

Filling a readonly input with Select2 in Laravel

A client asked me to enter an invoice you can select the identity card of the provider, and depending on it fill a field with the same name, and if you are not registered, you can register. Then I implemented Select2 for the ID search, and cr...
asked by 22.09.2017 / 04:18
2
answers

Problem with ORDER BY [ASC | DESC]

Good afternoon, I have a problem with the ORDER BY that I can not understand why it does not work, and it's probably stupid, but I can not find the stupidity. I have this query: SELECT * FROM webla_solicitudinfo ORDER BY 'IDSolicitud' AS...
asked by 21.09.2017 / 15:49
2
answers

How to use AJAX in a form?

Good afternoon, I think the title is badly expressed, I'll edit it when I think of a more precise question. Basically I explain my problem: I have a web page with an information request form. The action of the form is redirected to...
asked by 21.09.2017 / 17:52