Questions tagged as 'php'

1
answer

Execute javascript function in php

I'm building a chat system in php, and in the onlines client checking function it's going to be an ajax calling a php file every 30s, and in this file there will be a foreach that will bring in each user and do the verification , and I need to m...
asked by 29.10.2017 / 22:28
1
answer

problem with namespace and PDO [duplicate]

asked by 30.10.2017 / 13:02
0
answers

Tabs within modal returning data

I am creating a page that displays the data that has been registered and within this data I have the option to View, Edit, Quit and Delete the record. In this case, the option to View, Edit and End is triggered by the same button, where the u...
asked by 29.10.2017 / 23:08
0
answers

Change background according to frequency

I'm trying to make a table that gets the numbers coming from a SQL query and according to the frequency of each of them, change the background. An example (taken from a website): Igetaarray()likethefollowingfromthequery(example):Array([in...
asked by 10.01.2018 / 00:08
2
answers

Filling Radio Required html

How do I fill in this required field: <p><h5><strong>Estado</strong></h5> <p>&nbsp;&nbsp;&nbsp; <input type="radio" name="Estado" value="Concluído">Concluído     
asked by 09.01.2018 / 18:33
0
answers

Recognize email sending error Laravel

Good morning. I am doing a cron with Laravel 5.2 to send emails to my company, I am using the Mail sending of Laravel and would like to know if there is a way for Laravel to recognize that the email does not exist or to acknowledge...
asked by 12.01.2018 / 11:56
1
answer

retrieve a client name in a multidimensional array

I am creating a script to execute procedures in the database of some clients, I have the following arrays with the credentials of each one: $hosts["Cliente1"] = array("ip"=> "ip_do_cliente", "usuario" => "usuario","senha" => "12345",...
asked by 12.01.2018 / 20:29
0
answers

Keep selected multiselect values refreshing the page?

Hello, I have the code below that is a multiselect by category. What happens is the following, when the user fails to fill out a mandatory data, the page is reloaded and the message appears saying what data he forgot, but all the data already en...
asked by 13.01.2018 / 02:13
0
answers

Correct way to work with composer in php

Hello, I really like php and for some time I'm using the MVC concept in my application, however without using the composer and its autoloader. In order to raise my knowledge, I installed the same and got to use third party applications using the...
asked by 11.01.2018 / 07:34
0
answers

Keyword "use" in php

I was using an api when I came across the following code: $push->on('incoming', function (\InstagramAPI\Push\Notification $push) use ($ig, $socket) { ... }); I realized that the word "use" is used to use a certain variable within the...
asked by 10.01.2018 / 19:14