Questions tagged as 'php'

0
answers

Eloquent query does not bring me the record with the specific filter

I have tried to make a query that brings me all the articles that are in Active but I have not got any results. It always brings me all so the state is inactive and is what I do not want. These are the questions I have so far: First que...
asked by 27.09.2018 / 22:37
0
answers

eloquent query does not bring me records when I make a select

I have the following query in eloquent that shows me the records Usuario::with(['rutas'=> function($query){ $query ->select('rutas.*','puntosDeVenta.id_puntodeventa','puntosDeVenta.codigo') ->join('puntosDeVenta...
asked by 26.09.2018 / 15:11
1
answer

How to deny url access if you have not logged in

I have this code which is an administrator, the function is that when logging in it does not redirect but only includes the document .php and everything works, the problem is that when I have not logged in and put in the url admin.php example en...
asked by 26.09.2018 / 21:41
0
answers

Fatal error: Uncaught MercadoPagoException: collector does not have me2 active [closed]

I am trying to send a payment but I am having problems send me Fatal error: Uncaught MercadoPagoException: collector does not have me2 . Previously I was working correctly but we just frame this. Any idea where you're going? or if Mercado Pago...
asked by 25.09.2018 / 18:46
1
answer

ERROR when sending variable to php and capturing php array in jquery

I'm doing a car complete with jquery, php, sqlserver. I send a data to the file search-client.php with ajax but I can not get any results back and I can not see any kind of error in the browser. JQuery code $(document).ready(function(e)...
asked by 25.10.2018 / 12:34
1
answer

Reading and writing in a file with PHP

Good I have a doubt about the edition of a text file, it turns out that by default we have visits.txt with the value 0. Every time we update the PHP program, you have to increase this value by 1 and visualize it on the screen. I thought of...
asked by 25.10.2018 / 10:06
1
answer

How to make a mysql query for php graph?

I need to make a query in MYSQL, I have the following data COLUM1 FECHA PAIS 0 2018-11-13 0 2018-11-13 Reino Unido 0 2018-11-13 1 2018-11-13 Colombia 0 2018-11-13 1 2018-11-13 Peru 0 2018-11-13 0 2018-11-13 Espan...
asked by 14.11.2018 / 12:25
1
answer

Validate absences with php

Hi chic @ s I have a question about how to show a data that does not exist in the database ... I explain I have an arrangement in which I keep the students' attendance which is separated by id, date, entry and exit $ fecha2 is a validation to fi...
asked by 13.11.2018 / 22:07
1
answer

Problems PHP session - session_start does not work?

If I execute this code, it always returns the same result. What am I doing wrong? session_start(); if (!isset($_SESSION['count'])) { echo "no existe, inicializamos"; $_SESSION['count'] = 0; } else { echo "existe, sumamos"; $_SE...
asked by 14.11.2018 / 12:31
0
answers

Laravel route not found, but if it is defined

I have defined a route in the Laravel web routes file: // Rutas para el Product Route::resource('product', 'ProductController'); Route::get('/product/download', 'ProductController@download')->name('product.download'); The download meth...
asked by 21.10.2018 / 18:51