Questions tagged as 'php'

0
answers

Real-time search engine

Hi, I'm doing a search in real time in codeigniter, jquery, json and mysql. between the controller and the model I have communication, it brings me the data, but in object. I think the problem is in sending the data to the array in the js, some...
asked by 31.10.2018 / 03:50
1
answer

logear with an encryption key md5 in php

I need to decipher to be able to log in, on the web save with an encryption md5 <?php include 'config2.php'; $json = file_get_contents('php://input'); $obj = json_decode($json,true); $email = $obj['email']; $password = md5($obj['...
asked by 14.11.2018 / 19:58
1
answer

Pass two variables by href with javascript

I build a table with php and mysql $consulta = "SELECT id_inspirador, id_user, nombre, ap_paterno, ap_materno, municipio FROM inspirador WHERE status_aprobacion is null order by fecha_capa desc"; $registro = mysqli_query($con, $consulta);...
asked by 16.11.2018 / 18:08
2
answers

Laravel nested queries, how to query three tables

I have three related tables like this: Table One related from one to many with Table2, Table2 related from one to many with TableTres. How can I make a data query from Table Three with a condition to Table1. I'm really new at Laravel and I do...
asked by 09.10.2018 / 06:40
0
answers

Create a dynamic selection in laravel 5.7 (country - city) [closed]

hi esoty just starting with laravel I have two tables country and city related correctly, I want to create a select in my form that the country select me shows the cities that have associated in another select. thank you very much     
asked by 09.10.2018 / 11:14
0
answers

Save special characters in phpMyAdmin database

I am trying to save the following in the database by means of an input of a form C: \ Users \ jcifuentes \ Document's \ ESTUDIOS, but it does not let me save and if I remove the quote it has that is C: \ Users \ jcifuentes \ Documents \ ESTUDIOS...
asked by 10.10.2018 / 16:56
0
answers

Zend Soap server returned a String

Raise a SOAP server using Zend Framework and SlimFramework Soap, the call to wsdl works correctly and the result is in xML but when I call a function, it returns the XML as a string My Code: use Zend\Soap\AutoDiscover; use Zend\Soa...
asked by 18.10.2018 / 14:19
0
answers

Compare a column of an Array with 1 row in another table using Laravel 5.7

I hope I can explain in the best way I am developing a project in Laravel 5.7 and I have a problem which I describe below: I have the statusprestamos table id | idprestamo | totalprestamo | status 1 1 500 pendien...
asked by 20.10.2018 / 18:51
0
answers

Generate Json in PHP with mysql data

I need to create a json with the following structure (photo1), example 1115 are the union of the IDS region, province and city. Ahem: $idRegion = 1; $idProvincia = 1; $idCiudad = 1; $ids = $idRegion.''.$idProvincia.''.idCiudad; and...
asked by 19.10.2018 / 17:13
0
answers

Update a field by going through each record

I want to update records based on a variable $aux = 110 , for example. In the image the first row has an amount of 80. Therefore it must be zero and move to the next record with what about 110-80 = 30 . Then, the next record should b...
asked by 21.10.2018 / 15:14