Questions tagged as 'php'

1
answer

PHP - Get REQUEST_URI from current route

I'm trying to do a "Framework" , I try to get the path that the user requests from the current directory using the Mod Rewrite, with a .htaccess redirect the user to index.php (Tal as the well-known frameworks do), I tried to use $ _SERVER ['RE...
asked by 17.02.2017 / 22:07
1
answer

Error Codeigniter, How to fix it?

I am using codeigniter to develop, the problem is that when I already have the files on the server I get the following error ... An uncaught Exception was encountered Type: RuntimeException Message: Unable to locate the model you ha...
asked by 17.02.2017 / 14:48
2
answers

Duda View Composer and View Creator Laravel 5

Using laravel 5.2 I have two views: principal.blade : <!DOCTYPE html> <html> <head> <title>@yield('meta_title', $meta_title)</title> </head> <body> <div id="main"&...
asked by 31.01.2017 / 13:49
1
answer

Update fields of a Form using php and mysql

I have been writing a small script to update fields in mysql from a form with php. But I have a problem, when I try to update the field from php using mysqli, there are no changes in the database. The field I try to use as a parameter to upda...
asked by 31.01.2017 / 14:16
3
answers

Does UTF encode or decode an array?

I am making a form where I have to show a survey that is already hosted in the BD. I have the problem that it takes strange characters ...    "Mr./Sra.CASER MIRO ROTUE The technician gave you information on the operation of the installed equ...
asked by 29.03.2017 / 16:09
1
answer

Because my login is not redirecting me!

When I log in, it redirects to the page where the driver file is what is this    link THIS IS THE MODEL FILE: <?php class conexion{ private $conexion; private $host = "localhost"; private $usu = "root"; private $pass = ""; pri...
asked by 01.04.2017 / 04:37
1
answer

Undefined offset php when traversing PHP Array

I'm trying to go through the following array : ([items] => Array( [1] => Array ( [productCode] => DIEZ MIL 10,000 NEGRO 34 [cantidad] => 1 [precio] =&g...
asked by 01.04.2017 / 05:38
2
answers

Informix PDO and XAMPP

Greetings to all and in advance thanks to any answer and / or help you may receive. I have problems connecting PHP 5.6.24 of XAMPP to an INFORMIX server that is not on my local machine. Install the Informix CSDK, I made the respective conf...
asked by 03.02.2017 / 13:06
1
answer

Create a JSON from a MySQL query?

function connectDB(){ $conexion = mysqli_connect("servidor", "usuario", "contraseña", "base de datos"); if($conexion){ echo 'La conexión de la base de datos se ha hecho satisfactoriamente '; }else{ echo 'Ha sucedido un...
asked by 01.02.2017 / 19:38
1
answer

Foreach loop does not work properly on select

Good morning, I have an article editor where one of the fields that you have to "pick up" is the game to which it belongs. I've done it with a loop because it's about 2,000 games and I'm not going to create one for each game manually, it also...
asked by 23.02.2017 / 10:00