Questions tagged as 'php'

1
answer

Transform array and String

How do I transform an array similar to this and Strings to write each row in the Mysql database. I will only need the data of each array (date, site and Status) print_r($arrayOut); Array ( [1] => Array ( [date] =...
asked by 20.12.2016 / 15:50
1
answer

Transform result into array and get all values in "select"

I'm having a problem when creating a system, I need to do a select: $select = $mysqli->query("SELECT * FROM 'guild' WHERE 'user_id'='$userid'"); $row = $select->num_rows; $get = $select->fetch_array(); $guild = $get['guild']; Trans...
asked by 19.12.2016 / 21:19
1
answer

Edit record before passing by validation rule in Laravel

I have a form that registers clients. In the CPF registry field, I format the data with jQuery by entering the punctuation between the digits. It turns out that by entering this formatting, my Requets rules do not work corr...
asked by 25.11.2016 / 21:20
1
answer

How to return today's type input date?

I'm trying to fill an input field with type="date" with the date of the day the form is being filled. I tried the following code in PHP: function getDatetimeNow() { $tz_object = new DateTimeZone('Brazil/East'); $datetime = ne...
asked by 05.12.2016 / 15:58
2
answers

Google Maps bookmark

I have the application below, which adds markers to the map according to the past addresses, but it seems to me that it has a maximum limit. You only get 10 points, but there are more than 10 past addresses. Could someone tell me why and how do...
asked by 25.11.2016 / 14:26
1
answer

Get content through class with php

How to make a parse in order to get content by class with php? <p class="p2 p2-resultado-busca"><span>Conteúdo desejado 1</span><strong>Conteúdo Indesejado</strong></p> <p class="p2 p2-resultado-busca">...
asked by 28.11.2016 / 14:22
1
answer

Undefined variable: users

   Undefined variable: users (View: C: \ Users \ Vitoria \ Desktop \ Laravel \ resources \ Panel.blade.php <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"/> <title>BEM VINDO AD...
asked by 27.03.2017 / 16:05
1
answer

JSON in PHP with existing fields printing as Null, how to solve? [duplicate]

I have a SELECT that is not returning me some fields, such as "Notes". In the following image I'm ready the array and see that it is like "Null" the observations field: MyreturnSQListhis:<?phpheader('Content-type:application/json');head...
asked by 27.03.2017 / 20:59
1
answer

How do I define custom sort on a DB return?

Today I have a simple product catalog that shows all products together or by category. However, when I show all together I can only sort by ASC or DESC, but I need to sort it differently. When I show everyone I want to see a product X first o...
asked by 28.05.2016 / 19:32
1
answer

Neural Networks and Artificial Intelligence in PHP? [closed]

I'm interested in creating intelligent software in PHP, but I do not know where to start, as there is little material about it. What do neural networks and artificial intelligence have in common or how do they work together? Where to begi...
asked by 03.06.2016 / 05:32