Questions tagged as 'php'

0
answers

facebook login sdk php Error: 'URL blocked: This redirect failed because ...'

I have been struggling for a while with the integration of the login button of facebook in PHP . Locally, it works super well but when you take it to production and change all the settings in facebook.developer of the app....
asked by 23.04.2016 / 05:11
1
answer

Comparison of mysql records with php array

I need to compare the id contained within a php array, with those of a field in a mysql table. The idea is NOT to show the id (of the php array) in the mysql query response. $consulta="SELECT * FROM permisos_pedidos WHERE id_cliente = '$id_us'...
asked by 02.06.2018 / 02:23
1
answer

How to dynamically fill in php fixes?

I want to ask for your kind help since I am a newbie in php. I have the following amounts: $xcantidad1 = 1 ; $xcantidad2 = 2 ; $xcantidad3 = 2 ; $xcantidad4 = 3 ; I have a top of 10 lines. How can I fill in the 10 rows with the amoun...
asked by 06.06.2018 / 04:04
4
answers

Ignore the last characters of a string in PHP

Good morning, I'm doing the INSERT in a table of the database in two fields, one that is the username and another is the password. At the moment both fields have the same content, for example USER | PASSWORD [email protected] [email protected]...
asked by 12.03.2018 / 19:23
1
answer

Argument is not a function, got undefined

I have an error because I have changed my controller I have the same problem. var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $http) { $http.get("dashLot.php") .then(function...
asked by 06.01.2016 / 15:04
1
answer

Why does it fail to call a function in php if I have already declared the file with an include in my html?

What friends my problem is that I try to call a php function in an html and I get this error: Fatal error: Call to undefined function family () I have the include already declared calling the file that contains the function but still persists,...
asked by 19.12.2017 / 18:55
2
answers

Error downloading pdf with php

I am trying to make the user download a pdf file with php, the problem is that when the files are downloaded I get the following error: My code is as follows: $file="$file.pdf"; $filename = $this->config->item('RUTA_CFDi').$file...
asked by 07.07.2017 / 17:06
3
answers

traversing json from php

I build my json from php $marcas = $this->MainModel->getmarcas(); $valores = array(); foreach ($marcas as $value) { $Where["id_marca"] = $value->id_marca; $valores[] = $this->Main...
asked by 10.08.2018 / 15:02
1
answer

Error characters in utf8

I have a website in Portuguese, in which when I change the version of php and something else, when I insert it in the database, it does it badly and when it is recovered it comes out in the following way: O hotel dispõe de 150 quartos....
asked by 14.06.2017 / 10:06
2
answers

Problem with routes in Laravel

This is the content of the laravel routes file (web.php) Route::prefix('compra')->group(function () { Route::get('usuario', 'FrontControllerCompras@pideUsuario'); Route::post('consulta-usuario', 'FrontControllerCompras@consultaUsuar...
asked by 13.10.2017 / 14:35