Questions tagged as 'php'

1
answer

How to use the pointer concept in php?

I'm learning about pointer in C language and I already know how to use it. I think the way to use pointer in php is the same in C. But how do I make pointer declaration in php?     
asked by 24.09.2014 / 19:50
1
answer

What makes explode () better than split () in php?

I know that the split function is deprecated and there is the explode function that replaces it, but what exactly makes explode better?     
asked by 31.10.2015 / 19:58
1
answer

Function php () does not take line by line

I have a system that is going through a problem, one hour it reads line by line from one file, but when I send another file of the same type and with the same content (only a few different things) it considers it as a line. I am using the fil...
asked by 03.11.2015 / 20:09
2
answers

Warning: array_push () expects parameter 1 to be array, null given in

I want to assign objects to a array with array_push , but it is giving error:   Warning: array_push () expects parameter 1 to be array, null given in My class: <?php //PREPARA UMA RODADA class Rodada { $partidas...
asked by 18.11.2015 / 13:56
2
answers

How to concatenate in a string what was selected in a select multiple

Hello. I have the following code: <select id="idselect" class="ui-corner-all ui-widget-content" multiple="multiple" name="idPosto" style="padding: 3px 4px;"> <option value="1"></option> <option value="2"></option>...
asked by 01.07.2015 / 01:49
1
answer

PHP - Bank Reconciliation

I'm developing an application that will need banking reconciliation functionality. For this, the standard cnab 400 should be used for Banco do Brasil. I need to generate the batch file and handle the return file. However, I did not assimilate...
asked by 11.06.2015 / 22:05
2
answers

How to ignore a duplicate field and proceed with the insertion?

I have a txt file that I am extracting information and in it the information is repeated 6 times, which inserts me in the database the same record also 6 times. Sete UNIQUE to a unique number for each record in the mysql databas...
asked by 23.02.2015 / 21:07
1
answer

Problems with link and query

Hello, I'm doing a site where I need to change the query when I click on a link. For example, I have a product, ring, and I want to split into gold and silver ring. At the beginning of the page I made a query: $sql= "SELECT * FROM produtos WHE...
asked by 05.03.2015 / 01:15
2
answers

Hidden fields appear / modified with a select multiple

Hello, I have the following select: <select name="hierarquia[]" multiple> <option value="Usuário" selected> Usuário</option> <option value="Moderador" selected> Moderador</option> <option value="Adm...
asked by 01.03.2015 / 06:51
2
answers

How to mount this SQL

I have these tables: Client: cliente ------- id nome id_municipio Municipality: municipio ------- id nome Regional: regional ------- id nome Regional_municipality: regional_municipio ------- id_municipio id_regional In t...
asked by 12.09.2016 / 16:32