Questions tagged as 'php'

2
answers

Jquery problem in handling ajax data coming as array

My array returns from php like this (post): Array ( [0] => Array ( [O email digitado é invalido! Por favor insira um email correto.] => 1 ) [1] => Array ( [O telefone digitado e...
asked by 24.11.2016 / 17:01
2
answers

Popular select with database values

I need a popular select on form with values from another table. Type: <select> <option value="29">Frentista</option> </select> I wrote my select like this: {{ Form::select('set_id_fk', $setores, null, ['class'=&...
asked by 22.11.2016 / 20:16
2
answers

validation filter_input php

I'm receiving by $_POST I'd like to know if it's wrong to validate if like this. $romaneio = filter_input(INPUT_POST, 'romaneio'); if($romaneio == ''){ $romaneio = 'null'; }     
asked by 23.11.2016 / 17:59
1
answer

Logical help with PHP using Twitter API

Well, the idea is this, I'm using API of Twitter to do user authentication, I'm using the following resource: link . I used this video to help me authenticate, it's exactly the same: link The logic: All users who authorize th...
asked by 04.06.2017 / 10:06
2
answers

How to make preg_mach_all in different rows?

<div class="information di-ib mt4"> Movie (1 eps)<br> Aug 2016 - Aug 2016<br> 380,496 members </div></div> I want to do preg_match_all in this code, but I do not know how to specifically do the...
asked by 03.06.2017 / 16:07
1
answer

Can organic search visitors count?

I wonder if there is any tool / api to know from which website the visitor came to, to account visitors coming from the search engines. Thank you all.     
asked by 06.10.2016 / 21:51
1
answer

Improve bank insertion of related entities?

I have the database User , Professional and Address in the database. The foreign key for User is in Professional and the foreign key for Professional is in Address . I need to register a professional, who is a user and has an address...
asked by 04.10.2016 / 21:43
1
answer

How can I transform a BLOB file into an image using PHP?

I need to transform a BLOB file that comes from a MYSQL database to the Image type, to use on my site, I need to do the conversion using PHP, when I use the image in BLOB format, it goes to the whole site in binary .     
asked by 18.11.2016 / 18:08
2
answers

Doubt about PHP command to write inside another .php file

I'm encountering a problem in the following code: <?php $id = $_POST['id']; $titulo = $_POST['titulo']; $imagem = $_POST['imagem']; $coment = $_POST['coment']; $finalcoment = '<div id="triplox"><a name="index-' . $id . '"><...
asked by 08.10.2016 / 16:31
1
answer

Object of class Illuminate \ Database \ Eloquent \ Builder could not be converted to string. laravel 5.2

I'm having trouble with a relative search on Laravel . I give the option of several on-screen search, they are: start date end date status, and who it is But the person can search in a unitary way, for example: I want to get e...
asked by 16.11.2016 / 22:00