Questions tagged as 'php'

2
answers

How to redirect page after login in php?

Hello, I would like to know how to redirect page after user login. It has the Index that is the code below and here comes other pages type. requests.php, reserva.php and others only that all are linked in requests.php. so I would like to know...
asked by 04.01.2017 / 18:50
1
answer

Problem with login system - array

Hello. I'm creating a login system for study purposes. I have identified in the file that is not populating the array with the information of the database ... and yes, I already made sure that the entered email and password already exists in...
asked by 03.01.2017 / 23:23
2
answers

verify amount of php character [duplicate]

How can I check if a string is longer than 3 characters? Type So: if ($string >= 3) { echo "ok"; } else { echo "erro"; }     
asked by 28.12.2016 / 13:52
2
answers

Problem with use in PHP

I'm developing an application that sends an image to a bucket in amazon and I'm using sdk pure To send use the following code: function especifica(){ require '..\..\lib\aws\aws-autoloader.php'; use Aws\S3\S3Client; define("AC...
asked by 26.12.2016 / 20:18
3
answers

Place an image in the center of another image in PHP

I have a .png image of eg 200x200px. I need it to stay 300x300px, but without enlarging the image, just putting it in and centering on a white square of 300x300px. Is this possible? How can I centralize this image? Remembering that I ne...
asked by 07.11.2015 / 23:04
2
answers

Insert 'loading' gif while executing function [duplicate]

I have a submit button inside a form, which sends an action to another function file. In this file funcoes.php will execute a function and will return to the current page. While performing this function, after clicking refresh, I would like to...
asked by 30.10.2015 / 14:27
2
answers

how to use Order by enum

Hi, I want to know how to use ORDER BY to do the following in my SQL table column category module I have a ENUM with the following 'media','filme','ova' modes I'd like to make an application to sort as follows in the code be...
asked by 23.10.2015 / 05:53
2
answers

Hide URL data and change the view

I'm developing a system, where I pass a value into a variable and load it into my url, through the form using the POST method, so I have the Url: $url = "../usuario/detalhamento.php?foo=$id"; echo "<td><center><a href='$url' cla...
asked by 04.11.2015 / 13:22
1
answer

SQL has no results after using bind

I made this code to create databases : public function addDatabase($name, $collation) { try { $sql = "CREATE DATABASE ':name' COLLATE ':collation';"; // Prepare the query to execute $query = $th...
asked by 04.04.2015 / 15:59
1
answer

"clear" written text in input A and rewrite it in input B using jquery

I have < input type="text" id="A" > , I would like that when entering any text in this input, it was rewritten in input B, but before the text is rewritten, I would like it to be "cleaned". This cleanup is to remove special character...
asked by 13.04.2015 / 02:57