Questions tagged as 'php'

4
answers

Password and redirect

I'm trying to create a site that has a page, where the user needs to enter a password, after entering the password, if it correctly redirects the user to a home page, otherwise it displays an error message, I'm not exactly sure what is going wro...
asked by 24.08.2015 / 19:45
1
answer

Problem with Regular Expression

I have this regular expression in php that should find the default in the name of a file. Example: dge_ANEXO_II_F_TJ[1].pdf But I can not get it to work. Can anyone help me? '/[a-z]{3}_ANEXO|Anexo|anexo_[A-Za-z]{1,7}_[A-Z]{1}_[A-Z0-9...
asked by 10.11.2015 / 20:12
2
answers

What php code do I use to know if data is being received from a given form?

I have two search forms. The first with the name "search" the second "searchimv" needs a php code that checks if data is being received from one of the two only, otherwise it will be redirected to a specific page.     
asked by 10.12.2015 / 16:53
1
answer

Block login through CURL PHP

I have a login form that sends data via post and would like to block the login via curl. Is this possible?     
asked by 23.07.2014 / 18:32
2
answers

Is it possible to use two frameworks in php?

I will create a stock system and would like to use a framework to ease the process. How to choose the ideal framework to work with? Does this depend on what my business is about? If I want features from two or more frameworks is it possible? Or...
asked by 10.07.2014 / 18:27
2
answers

JSON loop with PHP

I have the following jSON { "nome": "Alisson", "nome": "Bruno", "nome": "Junior", "nome": "Nicolly", "nome": "José", "nome": "Greice", "idade": "20", "idade" : "21", "idade" : "29", "idade" : "14", "idade" : "11", "idade" : "20" } I want to...
asked by 27.07.2014 / 21:30
1
answer

Doubt, query does not work exactly as I want ... PHP

I have a table in the database called emails , with the following fields: id subject body e status (0, para não enviado, ou 1, para enviado). I was doing a query to retrieve only the rows that have status 1, my SQL query was: "SE...
asked by 21.07.2014 / 02:14
1
answer

SELECT command denied to user

   Error: SELECT command denied to user 'bank'@'xxx.xx.xx.xx' for table ' This error only happens in my hosting, it is running locally perfectly, I am querying 2 databases in a single query using: 'banco'.'table' ... Is it user permiss...
asked by 05.07.2014 / 03:40
4
answers

Connection error with SMTP when sending email using PHPMailer [closed]

I'm trying to implement sending mail with the PHPMailer library , however I've brought you the following errors : Edit: I am testing locally. SMTP -> ERROR: Failed to connect to server: Uma tentativa de conexão falhou porque...
asked by 17.07.2014 / 14:54
2
answers

Delete record by ID

I created a button to delete a record in the bank with the following code: File form.php : <form action='deletar.php' method='post'> <input type='submit' name='deletar' value='deletar' /> File deletar.php : $del...
asked by 22.04.2014 / 01:32