Questions tagged as 'php'

2
answers

How do I insure the value of a POST between pagination in CodeIgniter?

I have a form element with a select and a submit (filter). The data is filtered, the page is reloaded and the data is presented in a table. To see all the data, it goes through more than one page in the table (pagination). However...
asked by 20.03.2014 / 15:48
1
answer

Reducing the size of a video with PHP

I'm creating a website where the user can post images and videos. The user could upload a video with up to 10MB initially, but I wanted to reduce it, on my site, to 1MB or less (any reduction for me is great, but the more the better). I've done...
asked by 11.06.2018 / 04:29
2
answers

Insert imagem.jpg in the database

Good morning! Home I want to insert an image in the database in .jpg format, but when it is inserted it appears like this in the database: ???? JFIF Here is my code related to the image: <form action="" method="POST" enctype="multipart/for...
asked by 08.06.2018 / 11:22
1
answer

Laravel Authentication 5.4

Talk to people, so recently I started to study Laravel through some books / video lessons, and I'm bending my head with something about authentication. When I run the command php artisan make:auth Laravel returns me The Routes Aut...
asked by 08.04.2017 / 17:49
1
answer

Best way to apply the concept of object orientation

I have a class Usuario class Usuario{ } Let's say that user needs to access some different Web Services for features and information. I then thought about creating a class called WebService and grouping all methods with API a...
asked by 06.04.2017 / 16:18
2
answers

How to do 2 different database queries with PHP

I have 2 banks online, and I would like to consult the 2 banks how do I setup the connection? $Conn_1 = mysql_connect("teste","teste","teste"); $Db1 = mysql_select_db("BANCO1"); $Conn_2 = mysql_connect("teste","teste","teste"); $Db2 = mysql_s...
asked by 13.04.2017 / 15:08
1
answer

Using IBM Watson with php and Curl

Good morning, I'm trying to use the IBM chatbot service on watson. As a test I created my workflow for a simple pizza order. At the beginning of the call he welcomes you and asks you which pizza I want. It validates 3 information 1- Quanti...
asked by 06.04.2017 / 15:47
1
answer

Compare values of 2 arrays with PHP

Dear colleagues, I have the following situation: BD 01 ID | DESCRICAO | DRADS 1 | REGISTRO1 | 1,2,3 2 | REGISTRO2 | 1 BD 02 ID | DESCRICAO | DRADS 1 | REGISTRO1 | 1,2 2 | REGISTRO2 | 1 It is necessary to make a <select&...
asked by 07.04.2017 / 10:41
2
answers

Send PHP notifications

I see a lot of websites using pushcrew (or other services) to send notifications, even if the browser is closed. My question would be, is it possible to do this directly using the HTML 5 Notification API? How would you do via PHP send noti...
asked by 11.05.2017 / 17:41
2
answers

Select in another MySQL table

Any tips on how I can select all clients for a particular user? I'm not really understanding the logic of how to do the query .     
asked by 17.04.2017 / 19:40