Questions tagged as 'php'

1
answer

Search by like db in mysql

my question is the following I have a problem what happens that I try to pass two ways of obtaining values through like both by description and by codbar. the code is as follows this is the code that seeks me by description $this->db-&g...
asked by 12.11.2018 / 01:59
1
answer

GET "UID" IN JSON (PHP)

Hello friends, I need your knowledge to solve this small problem, I want to get the UID that is within IMAGES / RESULTS / matrix / i / models ... I have a code that I am using, I hope with all my heart to help me. $url = 'https://pastebi...
asked by 12.11.2018 / 02:49
1
answer

How to output an input from javascript

A help, how would the result put it in an input, to save the result in a database? To remove the div, please help function calcularEdad() { var fecha=document.getElementById("user_date").value; if(validate_fecha(fecha)==true)...
asked by 22.10.2018 / 03:16
1
answer

Collect the months in HTML and PHP from a select

I am trying to develop a function to be able to collect the months in HTML and PHP from select . At the moment, what I have is: <!DOCTYPE html> <html> <head> <title></title> </head> <...
asked by 23.10.2018 / 15:22
2
answers

Show notice when trying to delete foreign key LARAVEL

I have two tables with one to many relationship, "Locations" and "Devices", the problem arises when trying to delete a "location" that has a "device" related, I need you to show a notice that says that the deletion was not made and not the error...
asked by 08.11.2018 / 12:42
1
answer

exclude data in my sql search

I have a function that searches me in my database work with mysql function listUser($conexion){ $consulta = (mysqli_query($conexion, "SELECT *, p.nombre as personaNombre, p.id as idPersona, d.nombre as nombreDepartamento, u.id as idUs...
asked by 06.11.2018 / 01:13
1
answer

Call a SQL Server stored procedure from PHP

What I want to do is call a stored procedure done in Sql Server to PHP, I checked the PHP manual in which the SQLSRV is used, I was guided by that manual but I get an error and the truth is not much and I want you to help me. Then my p...
asked by 05.11.2018 / 23:58
1
answer

Variable in an array

I have this api in which it works with array and I want to pass a value that is defined in a variable and it does not take it, but neither does it throw me any error: <?php include 'include/cont_db.php'; require_once ('sdk-mercadopago/lib/m...
asked by 16.11.2018 / 05:33
1
answer

Help with If statement during data entry in MySQL in PHP

I need help with the following sentence $sql = "INSERT INTO tarjetas (id, monto, codigo, serial, usuario, id_pedido) VALUES(null, '$monto', ' $codigo', '$serial', '$user', '$id_pedido')"; $resultado_ingreso = mysqli_query($db, $sql)...
asked by 06.11.2018 / 16:43
1
answer

Help separating values and assigning them to a variable using MySQL and PHP

Greetings I have the following case: I own this table: id monto afiliacion 1 10 BASICO 2 20 AVANZADO 3 30 PREMIUN My query is this: $plan = "SELECT monto, afiliacion FROM monto_mensualid...
asked by 17.11.2018 / 03:18