Questions tagged as 'php'

1
answer

Friendly URL in php

I need help with this problem, I have the following code <?php include 'modules/head.php'; /**Contenido de pagina */ $rutas = array(); if(isset($_GET["ruta"])){ $rutas = explode("/",$_GET["ruta"]); $rutaCategoria = CategoriaControl...
asked by 03.01.2019 / 16:58
0
answers

Get data with WHERE_IN in CodeIgniter Sending Array with Ajax from Vista

I'm not very expert in the subject, I'm in the beginning. what I want is to obtain model data with an array sent with the category IDs to the controller through an AJAX request, the category IDs grouped in an array in Javascript as follows:...
asked by 03.01.2019 / 17:00
1
answer

How can I put paginator to this table in PHP? [closed]

<div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">REGISTRO DE <?php echo $title ?>S</h1> <section> <button class="btn btn-su...
asked by 03.01.2019 / 18:52
1
answer

Login with sessions php and fwrite?

I'm doing a mini folder creation system with files included when created. My problem is the login where I can not make it work, the user when registering creates the folder with the files. but I want the name of the folder to be the user and...
asked by 31.12.2018 / 01:48
1
answer

How to put php code in fwriter

I'm doing a mini system to create a folder with files inside, but the html works perfectly. but when you put the php code, everything stops working. I can not find any information that can help me. If anyone knows please help me :( Or if I...
asked by 30.12.2018 / 23:19
1
answer

how to put php or html in fwrite?

I am creating a mini system to create a folder with files inside. but I want the files to have the html and php code inside when it's created. The problem is that I can not find information to help me? Could someone help me? Code:...
asked by 30.12.2018 / 20:09
2
answers

Problems with memory when uploading a file by type input file

When uploading a file through a file type input, the file is an excel type, in which a table with different data must be filled, when it is uploaded to the server it gives me the following error    PHP Warning: POST Content-Length of 8978294...
asked by 31.12.2018 / 14:55
2
answers

how can I navigate the full path in a php forearch cycle

I am trying to walk a foreach that comes by a path get .htaccess, but I'm getting the last element and I need to get the full path. For example: localhost/file/folder1/folder/2/demo.php Returns only: demo.php This is my P...
asked by 31.12.2018 / 18:37
0
answers

Export selected data (multiple checkboxes) to a table

It turns out that I have several fields in the checkbox, and I want that each time the checkboxs are marked or selected, they pass the data to a table the checkboxes are within a modal, then in the modal the fields are selected, which when se...
asked by 29.12.2018 / 23:50
1
answer

Scope in Laravel with related table

I'm stuck in a filter: These are my tables: My model for Movement public function factura() { return $this->belongsTo('App\Factura'); } public function cuenta() { return $this->belongsTo('App\Cuenta'); } public fu...
asked by 29.12.2018 / 22:58