Questions tagged as 'php'

1
answer

Error selecting multiple data in php login

I have a simple script that allows a user of my site to view their data on a page, for example: name, email, age, image. See the script below: <html> <head> <title> Login de Usuário </title> </head> <body...
asked by 16.06.2015 / 19:52
2
answers

Calculation with PHP decimal number

I am making a query, which gets 2 values from the database. It returns the correction values with commas. But when multiplying is done, it is not counting the decimal places. foreach ($compra['CompraItem'] as $valores) {...
asked by 23.06.2015 / 17:07
1
answer

Test connection to the database

I have an application that has a central database, in it is made the registration of several databases dynamically to use in another part of the application. I want to know how to test if there is a connection to this database. I currently ha...
asked by 18.06.2015 / 21:50
1
answer

Ajax Address Search with PHP

I have a form with the list of clients. When selecting the client, I want it to automatically fill in the address, number, neighborhood and city fields. I have Ajax, but I do not know how to work out the return of it. var id = $('#cliente')...
asked by 09.06.2015 / 19:22
1
answer

How to send data from a php loop to an input using JS

How to send a data from a loop in php where each input will be able to be sent to another input that is outside of the php loop, I'm trying in javascript. I get the data directly from the database. Remembering that the input name goes outside and...
asked by 27.01.2016 / 16:17
1
answer

Check if an element of an array is contained in each element of another array with php

I have two arrays, I need to get each element of the second array and check if it is contained in any element of the first array using, for example, the function strpos (). That is, I need to check if any string from list 2 is contained in...
asked by 01.02.2016 / 03:21
1
answer

How to load files, folders and subfolders using php

I wonder if it is possible to load files, folders and subfolders using PHP?  I know that in Java it is possible to do this type of upload, but in php I could only upload multiple files.     
asked by 01.02.2016 / 03:41
1
answer

Treat request redirected by Htaccess

I'm studying routing, trying to (re) create a routing solution of mine. I have always used the following .htaccess to redirect my requests: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewr...
asked by 20.11.2015 / 17:25
1
answer

SQL checking data content

I'm doing a search system for my blog (it already looks for post category and tags). Is there any SQL command (or if SQL itself already does this) that makes it check all the contents of the data found in the table and return me? Ex: I put a...
asked by 20.11.2015 / 02:17
1
answer

PHPMailer does not send email

I have a problem with the PHP Mailer class, and I have a bigger problem, because this is an email that is sent when there is a change in transaction status, so I can not debug this page because POST comes of an API. Everything is working, upd...
asked by 20.11.2015 / 13:01