Questions tagged as 'php'

1
answer

json.success does not work or does not enter the code

Good someone could tell me why it does not enter my condition if it is only a validation to check if the vin of the car exists if it is not only shows message and if it is if it inserts me it is in MVC, it marks me error in the code only in the...
asked by 25.09.2018 / 22:39
0
answers

filter with angular search bar

I am trying to do a search with a bar, in which the names of all the clients that are registered in the bd appear. From a php file I made the query. This is my code ts: userData:any={"accion":"consultaclientes"}; initializeItems() { t...
asked by 26.09.2018 / 03:43
1
answer

Error when validating an INSERT INTO of a foreach

guys I have the following code: My code <?php $lote = $_REQUEST['lote']; $lote_pedido = str_replace(" ", " ", $lote); $datos = $lote_pedido; // divides por espacios y cada 6 elementos, los elementos de cada f...
asked by 25.09.2018 / 22:16
1
answer

Is it necessary to save the path of the image in the Bd to show each image with its respective id?

Currently I have a code that extracts the last image modification path of each user, this extracted from a folder and a subfolder created with the id of each user (files / id / imagen.jpg). I do not keep the last route in Bd. This is the code...
asked by 24.09.2018 / 17:04
1
answer

redirect By htaccess with querys

I currently have this type of URL and it works fine:     www.example.com/flower The full path of the example is: www.example.com/indexmodelo.php?carpeta=flower But previously the route was conformed through the IP instead of the FOLDER:...
asked by 24.09.2018 / 15:19
1
answer

In laravel how to send and invoke more data with Markdowns Mail

I have this question of how to send several data in a array and that when invoking this data in the template that was sent can declare them in different sections, this is what I have This is my Mailable namespace App\Mail; use Il...
asked by 24.09.2018 / 15:22
0
answers

Query for a table value in ajax Class format poo with extends

I have this problem and I want to consult directly, I get an error, if someone knew how to do it better, I would like to be instructed. $user = $db->facultad->getAll("SELECT cuenta, contraseña FROM cuentas WHERE cuenta='MAT2018A001'");...
asked by 23.09.2018 / 23:20
1
answer

Bring and display json data with ajax

I have a select in a form, and I want that when selecting an option, it shows me the ones related to it in some input text in the form (to send and save it in BD later). Use an ajax to send the selected value and make the query to the correspond...
asked by 27.09.2018 / 14:26
0
answers

Ajax type POST and send to two php

I have a booking form at a restaurant and I require that the reservation information be sent to the restaurant and a message that the reservation was received by the client. I have two php files, each one sends the emails separately, but when I...
asked by 22.09.2018 / 15:46
0
answers

Load image in modal stored in server

Thank you in advance for the help you can give me. I have an html table which is dynamically filled with data from mysql, in it I have a button that opens a modal window and this modal should show an image previously saved on the server. The...
asked by 27.09.2018 / 15:10