Questions tagged as 'php'

1
answer

Error Call to undefined function split ()

if(isset($_POST['lista']) && $_POST['delimitador']) { separar(trim($_POST['lista']), $_POST['delimitador']); } function separar($lista, $delimitador){ $ab = split("\n", $lista); //está é a linha 31 aonde o erro e apresentad...
asked by 07.08.2017 / 22:48
3
answers

Problem in using include php different folders

First of all I apologize for not being able to express myself correctly, I am still learning php and I came across the following problem. I am setting up a site for studies and in the root I created the folders: css (where is the materialize...
asked by 17.08.2017 / 20:42
2
answers

Complete next field without user having to give TAB

By clicking on the button next to UF the user opens a table with the states of Brazil, and from the state selection the other fields are completed, so far so good I could do, however I have to click inside the input and then somewhere else or gi...
asked by 17.10.2017 / 20:59
2
answers

Remove line break after each INSERT

I have a textarea in my code, where the user will enter access vouchers separated by ENTER. My PHP code treats the typed values as follows: $voucher = explode("\n",$voucher); foreach ($voucher as &$varray) { $...
asked by 19.09.2017 / 15:16
2
answers

Overwritten data when saving access log to file

I have a problem that I think is easy to solve, but I do not know how to solve it. Below is a script to record who accessed the page. It worked fine, but it overrides one access on top of the other, and I need every IP that it accessed to be...
asked by 29.09.2014 / 19:24
1
answer

Get value from a table row if checkbox is checked

I have the following table which is built from a database entity. HTML: <table class="table table-hover" id="produtostab"> <thead> <tr> <th>Descrição</th>...
asked by 21.08.2014 / 20:18
2
answers

Is it possible to insert by checking the fields?

My problem is: "I have a array that stores data of duas combos . In a combo I add " P " and then the value typed Ex: In the other one I add at the start "S" and it gets S11111111 .But in my database table I have separate...
asked by 26.08.2014 / 14:24
2
answers

How to access COOKIE on another page?

I have a file in which it creates a cookie. And I have another file in which I call this cookie, but it gives me this error: Undefined index: name in Here is the code for the first file: setcookie('nome', $dataNome', time() + (2 * 3600));...
asked by 28.08.2014 / 22:02
1
answer

Array conversion into string

I have the following array as I transform it into a string. This string would be used to save the products of the shopping cart in MySQL. Then they have several snacks and products: products 5,2,5 use this code implode(',', $adicion...
asked by 23.09.2014 / 06:30
2
answers

Difference between two Multidimensional Arrays with PHP

I have these two multidimensional arrays and would like the difference between them, similar to what the array_diff function does, but with multidimensional arrays: $array_1: Array ( [0] => Array ( [...
asked by 19.07.2014 / 23:28