Questions tagged as 'php'

1
answer

Filtering Dates in PHP

I'm trying to filter dates, the issue is like this: By method POST I get a date with the format "yyy-mm-dd" plus the time with format "HH:MM:SS" , the date and time are separate variables of type string. $fecha = "2016-0...
asked by 01.09.2016 / 21:45
3
answers

Error PHPMailer

Hello everyone, I have a problem that according to the library's documentation my code is fine require_once '../lib/PHPMailer/PHPMailerAutoload.php'; require_once '../autoloadIn.php'; $cadena = "<p style='display:block;color:red;font:bold;...
asked by 02.09.2016 / 19:57
2
answers

Find the differences between arrays of type index = array in PHP

I need to find the differences between two arrays with the following structure: array([0] => array([ciudad] => "Londres" [pais] => "Inglaterra") [1] => array([ciudad] => "París" [pais] => "Francia")... [n] => array([ciudad...
asked by 08.12.2018 / 03:33
1
answer

Laravel - Relationships using Eloquent

I'm trying to create a field relationship using eloquent de laravel, I currently have it working like this: $empleos = Empleos::latest()->paginate(50); return $empleos; I return all jobs correctly, my problem is that there are fields tha...
asked by 07.12.2018 / 00:57
1
answer

Error running the composer: JIT compilation failed: no more memory in phar:

When I run composer, I receive the following error:    Fatal error: Uncaught ErrorException: preg_match_all (): JIT   compilation failed: no more memory in phar:     
asked by 12.12.2018 / 16:23
1
answer

How to work correctly with entities that are related in laravel?

I have a model called Inmueble , its attributes are: Property Number Location (in flame database id_ubicacion ) Type of Property (in flame database id_tipo_inmueble ) Area Description This model has its respectiv...
asked by 13.12.2018 / 15:39
1
answer

Problem php routes - PATH

Good afternoon to everyone! I tell you my problem: I have a file in which I can publish an announcement, but first I must make an include to the configuration file, where the connection variables and others are located. The fact is that by tr...
asked by 12.12.2018 / 19:14
3
answers

Does not show the data of my MySQL table

I want to show in my php file taking from my MySQL database the ClientCode and CustomerName of my table Customers of my Database 'gardening', this is the code I have but nothing is shown to me in the browser. The connection to the database works...
asked by 04.12.2018 / 23:21
1
answer

php records are not saved

I have to save what I write in an input text in a table in a database, I do not save anything, I do not know what problem I have, I'm new to this. they are made in a stored procedure and I only execute it with a query. <?php include_once '....
asked by 04.12.2018 / 13:15
1
answer

Create a new column in SQL table

I have a problem and I hope someone can help me .. I have an SQL table with these columns: What I need is to create a "Total" column that is unitPrice * amount, but I have tried several alter tables and they have not worked for me....
asked by 04.12.2018 / 23:39