Questions tagged as 'php'

1
answer

How to add send via SMTP in phpMailer?

Good morning, I have the following code to send an email via PHPMailer. <?php $GetPost = filter_input_array(INPUT_POST,FILTER_DEFAULT); $Erro = true; $Tipo = $GetPost['tipo']; $Nome = $GetPost['nome'];...
asked by 30.08.2017 / 15:17
1
answer

Read content from multiple .txt files in a given folder

I have this code that reads a file created by Netscape HTTP Cookie File , however I was only able to use the script and read the file of the user who is with the session username open, I need to list all TXTS and read all the...
asked by 04.09.2017 / 16:05
1
answer

Put variable in session in Laravel

I am registering a name in a modal, sending to the controller and putting in the session. Returning to the view has nothing in the session. What am I doing wrong? Controller namespace App\Http\Controllers; use Illuminate\Http\Request; use...
asked by 31.08.2017 / 00:18
1
answer

Error getting the bank's value

I'm trying to get the ID of a bank data with PHP. At the time of returning the value, it always comes as 1. //Obtenho os valores por GET $description = $_GET['DESC']; $contentType = $_GET['TYPE']; $content = $_GET['CONT']; //Crio meu objeto d...
asked by 29.08.2017 / 17:28
1
answer

Invalid handle returned - Laravel connection with SQL Server

I was developing an application with Laravel 5.5 with a Mysql database. Everything was working normally, however, now the database has been modified to SQL Server. When I run the test, it returns the error "Invalid handle returned." Searc...
asked by 21.09.2017 / 15:35
2
answers

Search in two tables [duplicate]

I have a media table with the fields id_midia , nome , tipo , and another synonymous table that has the id_midia , sinônimo I need to make a query where it checks the two tables whether the term you typed is co...
asked by 20.09.2017 / 14:23
1
answer

Site or PHP or HTML System Conversion for Android and iOS application

What is the best way to 'convert' a website or PHP or HTML system to an Android and iOS app ? I have a PHP script with MySQL DB and HTML site, and I heard that it can generate the site or system version in PHP or HTML for Android and iOS app...
asked by 14.01.2018 / 18:17
1
answer

Capture only one element of an array

I have the following array , how could I store in a new array only the "product_id" of all "store_id"? array(2) { [0]=> array(2) { ["loja_id"]=> string(3) "286" [0]=> array(2) { [...
asked by 30.01.2018 / 17:19
1
answer

Upload ajax jquery php

I need to upload the image with ajax / jquery, following this structure: Form: <form> <input type="text" name="seu_nome" /> <input type="text" name="sua_senha" /> <input type="file" name="file" /> <button type...
asked by 06.02.2018 / 20:46
2
answers

Duplicate select in two tables

I'm doing a system in PHP, but I'm stopped because I can not find the solution to a challenge. I have 2 tables, one call objetos and another call gavetas . I have several names of drawers registered in the gavetas table an...
asked by 16.08.2017 / 19:02