Posts by Valdir_Silva • 17 points
8 posts
-
0
votes1
answer21
viewsQ: How to go multidimensional picking up key and value?
Hello I have a multidimensional array and I need to go through all levels $items = [ 'janeiro' => [ 'alimentos' => [ 'item1' => 100, 'item2' => 50, 'item3' => 200, ], 'limpeza' =>…
-
0
votes2
answers40
viewsA: CSS in an HTML page
You can also keep it in two columns using column-Count. See if that helps you. #area-postagem { width: 660px; column-count: 2; padding: 10px; float: left; /*display: block;*/ /*float: left;*/ }…
-
-1
votes1
answer193
viewsQ: Convert json object to php array?
I’m trying to convert an object json in array, I have tried several ways using the json_decode() function Save() { let post_id = document.getElementById('post_id'); let pergunta =…
-
0
votes1
answer192
viewsA: How to receive HTML information in Node js
You’d have to use the middleware - body-parser If you’re using the express would look like this. const express = require('express') const app = express(); var bodyParser = require('body-parser') var…
-
0
votes2
answers111
viewsA: Php and Pdo - Data insertion are being duplicated
You can try this way, getting the array through the filter_input_array and passing the positions that will be inserted in your bank. public function insert(array $dados) { $this->dados =…
-
0
votes1
answer85
viewsQ: Ignore CSV header before inserting into the database
I created a method to upload clients via csv files. It is working perfectly the registration, however I need to ignore the first line, the header of the file, I am looking for but still not getting…
phpasked Valdir_Silva 17 -
-2
votes1
answer308
viewsA: Footer at the bottom of the page and after the content
You can use #footer{ width: 100%; bottom: 0; position: fixed; } Instead of using the position: relative use the Fixed
-
0
votes2
answers103
viewsA: Percorer 2 Distinct Arrays and Verify Which Values are Equal
You’ve tried it this way ? $arrNumber = [1,2,3,4,5]; $otherArr = [1,3,7,9]; foreach($arrNumber as $arr){ foreach ($otherArr as $v) { if($arr === $v){ print 'Equal values:'. $v .""; } } } if it is an…