Questions tagged as 'php'

2
answers

error when using the diff on dates with php?

I'm currently using the diff command in php to make a difference of two months, but that difference comes out but it's wrong it's not the correct one: Date today: 8-03-18 future date: 07-05-18 This is the result that I get:...
asked by 08.03.2018 / 16:48
1
answer

Error Send email when uploading to Laravel hosting

in localhost with Laravel I can send emails, but when I upload it to the hosting it gives me an error. A few days ago I had a problem with Mysql when uploading to the hosting and it was touching a file. But I do not know what I have to do in...
asked by 08.03.2018 / 11:27
2
answers

DB Mysql is not created when I migrate a [closed] model

in my console I write php artisan migrate and my result is as follows     
asked by 08.03.2018 / 23:36
1
answer

Run unit tests with Phpunit in lumen

Hi, I have a project of lumen with the file phpunit that comes by default that is just like this one <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstra...
asked by 28.02.2018 / 13:01
2
answers

See if element exists in the php database

I'm trying that when the user leaves the focus of an input text it shows if that value already exists in the database or not, but it always throws at me that it exists. (The request goes through a controller but I omit it here), I feel that the...
asked by 15.02.2018 / 21:18
2
answers

Error uploading images in Laravel

I am doing a blog in Laravel, the posts have images and when creating a post an image is uploaded. If the post is created the image is uploaded perfectly but when the post is edited and another image is uploaded it does not go up and also the ad...
asked by 15.02.2018 / 23:53
1
answer

Retrieve variable from a URL

I pass the value as follows: <td><a href="liberar.php?id='.$row["id"].'">Finalizar</a> </td> And the URL arrives in this way: 000.000.00.00/bitacora/liberar.php?id=11 id = 11 is value that I want to recover...
asked by 15.02.2018 / 23:44
1
answer

Problem counting records with rowCount ()

I need to count a number of records in a table that meet two conditions, the problem is that you are only telling me one record. This is my function: public function NewClients(){ $fecha_inicio = date('Y-m-01'); $fecha_fin = d...
asked by 16.02.2018 / 16:13
1
answer

Show mysql data in a table with php

I have an input where I put a query and it returns the data of the query, but I want the data that I returned to be in a table so that they can be visualized better. Nowadays I get something like this: first name first name last name first na...
asked by 17.02.2018 / 12:12
2
answers

How to traverse a variable with an internal loop without the external one affecting it in PHP?

I have a form that traverses values of five machines (machines) through a foreach that takes all the values that are sent, followed by checking which termination has the name of the text field and assigning it to the corresponding variabl...
asked by 16.02.2018 / 18:40