Questions tagged as 'php'

1
answer

Error executing query sql server + php + pdo

Follow the code: $conexao = new PDO("odbc:Driver={SQL Server};Server=127.0.0.1;Database=MASTERDB; Uid=admin;Pwd=admin123;"); $select = $conexao->query("IF Object_ID('tempDB..#TabBatidas', 'U') is not null DROP TABLE #TabBatidas; SET D...
asked by 01.11.2016 / 22:26
1
answer

Filter table php mysql by date

I have a table in a php page that displays the clients who have submitted leads to the site. How can I create an input where the user places a date and only shows the leads sent on this date? <?php header('Content-Type: text/html; charset=u...
asked by 31.10.2016 / 18:35
1
answer

Android: sending json and receiving with php and registering in the bank

I'm having trouble making this communication, being that I'm responsible for the part of php and the part of the android is being made by a friend (that's the code sending something), he said he's sending by POST the most I can not find anything...
asked by 23.09.2016 / 23:21
1
answer

Do not Enter Equal Values PHP and MYSQL [closed]

I have a script in PHP and MySQL that looks in the client table for all clients that have not yet been imported to another bank / table and it imports. In the customer table, you have flag imported with values (0 or 1). I make a sel...
asked by 01.11.2016 / 10:46
1
answer

How to put two Google Charts on the same page

I am creating a web application in which it uses two graphics fed by the bank. I use google's api, google charts. However, only the first graphic appears while the other is blank. <html> <head> <script type="text/javas...
asked by 16.06.2016 / 04:35
1
answer

check if file is in use with php

I have a file called photo.zip, where people can download it to my site. I want to create a file in php that crontab will run every 10 minutes, and check if the file is being downloaded by someone. If it is not, it deletes the file. Someone k...
asked by 17.06.2016 / 15:04
1
answer

Error: The Response content must be string or object implementing __toString (), "object" given

I use laravel 5.3 and am having this problem:    The Response content must be a string or object implementing __toString (), "object" given, When I try to use a route that returns an image of a particular user from my system, follow the...
asked by 27.12.2016 / 23:30
1
answer

PHPGD image on the other, send back

I'm placing a frame and inserting the background, but the image is on top. I would like to know if there is any way to send back, like what graphic editors do, I already tried to invert the code, first inserted the background and then the frame,...
asked by 29.12.2016 / 00:16
2
answers

Error adding elements in MySQL database with PDO

I'm having the following error while inserting into the database:    Parse error: syntax error, unexpected '{', expecting '(' in /var/www/public/Test/db/add-banco.php on line 18 Line 18 is: } catch { <?php $host = "localhost"...
asked by 31.05.2016 / 15:21
1
answer

Dependency installation adds more dependencies

This is the first time I'm trying to work with composer , the purpose is to use only PHPUnit , since I do not use any dependencies anymore. When installing composer , with composer.json having only PHPUnit as a de...
asked by 26.05.2016 / 16:20