Questions tagged as 'php'

2
answers

Error sending data with prepare and mysqli

I am trying to send information to my database after making two queries, the first if the user already exists and the second if the email already exists subsequently made the "upload of information" to my database with my sentence prepared This...
asked by 03.04.2018 / 02:12
3
answers

Record data "date" in Mysql + PHP

I am trying to save a date in DD-MM-YYYY format, but I can not get it to be added in the bbdd. In PHP code I have: $nid = $_POST['nid']; $first_name = $_POST['first_name']; $birthday = $_POST['birthday']; $query = "INSERT INTO users('nid','fi...
asked by 01.04.2018 / 17:08
1
answer

error to consume api rest from ionic

I have a rest API created in laravel and when I try to consume it from ionic it generates an error that I have not been able to solve. I have thought of placing a condition that when the route is api I throw the data in json otherwise I send the...
asked by 05.02.2018 / 00:57
1
answer

Why does THIS ERROR come out that I have an ambiguous field?

THIS IS THE INQUIRY: select asignaturas.materias, estudiantes.id_estudiantes, nombres,apellidos, calificaciones.id_calificaciones,n1,n2,promedio from asignaturas,estudiantes,calificaciones where id_calificaciones='$idcaliurl';     
asked by 04.02.2018 / 22:00
1
answer

I have problems in my laravel 5.5 project

This error appears:    SQLSTATE [42S22]: Column not found: 1054 Unknown column 'clients.deleted_at' in 'where clause' (SQL: select * from clientes where clientes . deleted_at is null) Generate my controllers and...
asked by 07.02.2018 / 16:28
2
answers

Retrieve the checkbox value with php

In the database I have the column Active type tinyint(1) In the form <input type="checkbox" id="proActive" name="proActive" checked value="1"> I send it by method POST and I receive it ... $active = filter_in...
asked by 04.02.2018 / 09:21
2
answers

Symfony, return a Json with all the fields

I have an entity named "Courses" that has a series of attributes and one of them is "shop" which is an onetomany relation with a Entity "Shop" In the controller I have done an action that what it does is to return a JSON by applying a series...
asked by 05.02.2018 / 16:23
1
answer

Submit in php to redirect to different pages?

Good morning, I have a problem. I am starting in php and what happens is that I divided my code into several files so as not to have everything jumbled up in a single file. I'm doing a login type entry however I have two options; one allows the...
asked by 07.02.2018 / 15:59
2
answers

How to add several records at once with php and javascript

I have knowledge in CRUD (Create, Read, Update and Delete) of MySQL PHP but in a last project of warehouse I wanted to make a form that the more inputs are requested, more rows of form can be added, but this I do not know how to add a id...
asked by 31.01.2018 / 03:24
1
answer

generate link to download file in PHP

I have a page where I want to generate download links with labels these labels are generated in a for and I want to click on the label you can download for example file 1, then on the next generated label you can download the file 2 and so on I...
asked by 29.01.2018 / 19:37