Questions tagged as 'php'

1
answer

How to turn this json into array

I need to transform this json (not all fields_atributes fields) into an array in php so I can change the data easily mutation{ createCard( input: { pipe_id: 219739 fields_attributes: [ {field_id: "assignee", field...
asked by 02.04.2018 / 16:09
1
answer

How to break line inside textarea

I need to bring the listing of people within a textarea or some similar alternative. I'm bringing it this way: <textarea rows="5" name="pergunta4"> <?php foreach($avaliadores as $avaliador):?> <?php echo($avaliador['no...
asked by 11.04.2018 / 21:13
2
answers

How to update a database without action from the client?

I'm not very advanced in php, sql and everything else, and I came up with the following doubt. Assuming that today is day 10 and I want that if it happens on day 12 an information in the BD is updated to 'sent' for example, if the user is open h...
asked by 06.04.2018 / 23:05
2
answers

Find and remove words from multiple arrays

I have some arrays that come from the database, and I would like to remove occurrences of words in them, for example, the string in $title $title = "Eles foram com José procurar alguma coisa"; $bad_words = array('foram','prOcuRar','......
asked by 11.06.2017 / 01:27
2
answers

How to get the days of the current week sorted Sunday / Monday

I have a grid of some time notes that I have a filter for user fills the date and loads my grid with the records and I have a <thead> that has the days of the week, I'm getting the right days, but it stays that way : Segunda 12 Te...
asked by 02.06.2017 / 14:16
1
answer

Record personal communication data

I'm trying to write to a person's BD communication data and I'm not able to resolve it, the data in that communication is Email , Telefone Empresa , Celular Empresa and Ramal , each of these are registered types i...
asked by 19.06.2017 / 20:05
1
answer

How to get current date, and put in an insert? [duplicate]

How can I get the current date of the server and put it in my query to send to the bank? I do not have the slightest idea how I can get the current time and put in a variable to send to the bank, thank you.     
asked by 17.06.2017 / 21:02
2
answers

Grouping Array Results Out of Loop

How do I group Array results outside the loop in a single variable In the example below the result that is inside the loop is correct but I need this same result to appear on the outside of the loop, How can I make this work? fore...
asked by 14.08.2017 / 19:52
1
answer

How to get server operating system information? [closed]

How can I get the operating system from my server? For example, some method to know if the operating system of the production environment is in Linux, Windows, etc ...     
asked by 07.08.2017 / 23:33
1
answer

Array Processing

I'm getting an array: [{lat: "[{"area":"-22.88975203013098", lng: "-43.12695211119432,"},…] 0 : {lat: "[{"area":"-22.88975203013098", lng: "-43.12695211119432,"} 1 : {lat: "-22.88977179811704", lng: "-43.12685018725176,"} 2 : {lat: "-22.889796...
asked by 03.10.2017 / 13:55