Questions tagged as 'php'

1
answer

Can I filter an XML file?

I would like to know if I can filter a file XML . The file is as follows: <Boletin_Consolidado> <Boletin> <Numero V="0122"/> <Tipo_Boletin V="DEPARTAMENTAL"/> <Departamento V="31"/> <Desc_Departam...
asked by 22.08.2018 / 14:01
1
answer

extract database database record by blocks

I have a table in a BD and I want to extract from it 10-in-10 records to store an image and have no memory problems. I'm working with laravel The code I use is: $imagenes = new Collection(); DB::table('inscripciones')->orderBy('id')->...
asked by 22.08.2018 / 15:58
0
answers

Delay when loading records in datatable

I have a table with 3,000 records, when loading the page it takes too long. I have another table with 16,000 records and it's worse because if it takes too long, it goes wrong. You can help me solve that problem. I read out there that it can...
asked by 29.08.2018 / 23:51
1
answer

When I click the delete button it stops working, but I click on another button and it works again 2 more times

When you click the delete button it stops working, but I click on another button and it works again 2 more times, or at least it refreshes the browser to make it work again. <script> $(document).ready(function() { $('.elimi...
asked by 29.08.2018 / 19:02
1
answer

Generate a random while there is no equal one in the db

Good afternoon I have the following code to generate a sequence of letters and numbers. function aleatorio($longitud, $tipo=0){ $codigo = ""; $caracteres="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $max=strlen...
asked by 23.08.2018 / 19:06
0
answers

How to replace database with JSON file for Jquery Ui autocomplete?

I'm doing a search engine and I'm using Jquery UI autocomplete to bring suggestions from a database. My question is if I can (and if so, how it is done) replace the database with a JSON file because I imagine it must be faster. My current code i...
asked by 23.08.2018 / 19:10
0
answers

Show Image in php that is saved in sql

Hello Friends very good morning I have the following situation, I have an image saved in sqlserver with a column type image. I would like to be able to show it in php and I use the following code and I can not show it: error_reporting...
asked by 20.08.2018 / 15:45
1
answer

Query data from a MySql table with REGEXP

The first thing I do is capture the variable of a form and through a PHP file I make the query. But in this way I only capture the IDs that do not have asterisks, example 123456789, I need to show the information of the IDs in this way 123 * 456...
asked by 20.08.2018 / 18:00
1
answer

Carousel help images (php, custom fields)

Good I have the following doubt, I have created this carrousel of images taking the data of custom fields. The case that in the image, the corresponding link does not apply and no image appears in the carrousel. Previously if I do a var_dump...
asked by 31.08.2018 / 11:13
1
answer

Send message via socket to a specific client with PHP Socket.IO

I need to send a message to a client connected to a socket server but I need it to only be sent to a person, and not a broadcast as such. I have read that with the function to() of socket.IO it can be but I have implemented it in several...
asked by 20.08.2018 / 15:00