Questions tagged as 'php'

1
answer

Restart Invoice number in AdminLT template [duplicated]

Download a web system to manage purchases and sales in problem is that the invoices start at 1000 as seen in the reference photo, how can I reset the invoice number to 0? Thanks!     
asked by 31.08.2018 / 08:02
1
answer

Revert output from print_r to its original PHP array

This question I ask because of a difficulty that I find especially answering questions right here. When sharing the result of print_r of an array, for example: Array ( [0] => Array ( [dim1] => Array...
asked by 18.05.2018 / 01:32
1
answer

oracle update with php

Good I want to do an update from php to a database oracle.But I get the following bug    connection made Warning: oci_execute (): ORA-00911: invalid   character in C: \ xampp \ htdocs \ Challenge \ activation.php on line 20 <?php $codi...
asked by 23.05.2018 / 01:25
1
answer

How to add the content of an input to a data in a MySQL table in php?

I have a database on my main computer filled with records of different products, I needed to perform a search and after the product was found through the bar code it would proceed to add an amount entered by a user, the part of the connection to...
asked by 18.05.2018 / 00:08
1
answer

Regular expression that validates PHP

I am making a regular expression that validates the Venezuelan identity card and I achieve it if(preg_match_all("/(\d*[0-9]{2})/", $cedula, $resultado)){ print_r($resultado); } else { echo "No hubo resultado"; } The problem is tha...
asked by 20.05.2018 / 23:07
1
answer

Detect change in JSON [closed]

I put you in situation, I have an API that returns the JSON (for example link ) to which I can only access to obtain the data, I can not touch your code. I would like to know every time there is a change in the JSON (for example temp, pressu...
asked by 14.05.2018 / 08:47
1
answer

a while inside an html table

Good morning companions (here it's just 10am), to see if they can help me, because I do not know why the code does not work and I explain the code in a table I have "X" name let's say brands when I click on the brand, you must show me all the pr...
asked by 11.05.2018 / 18:11
2
answers

How to concatenate single quotes in echo? (In php)

This problem occurred to me, I tried with some examples that I had but it does not work, it's something simple, but in php manuals, and examples that I had I could not get it to work, I need to use the single quotes inside an echo: <p...
asked by 29.06.2018 / 23:31
1
answer

Convert text to PHP array [duplicated]

I have a text that has this format: { "id":"1", "creado_por":"superadmin", "fecha_y_hora_de_creacion":"2018-06-09 11:04:08", "auditor_asignado":"Yheferzon", "nombre_beneficiario":"CHARLES XAVIER" } And I have not been able to tu...
asked by 27.06.2018 / 19:09
1
answer

Sort unpaged list in php laravel

I'm organizing some list objects by their names, but I want to sort them without having to page them. The code that I have is the following: if ($filter['sort'] == 'name_asc'){ return Employee::orderBy('first_name', 'ASC')->paginate(100...
asked by 03.10.2018 / 00:56