Questions tagged as 'php'

1
answer

Link to login form joomla 3.x

I'm creating a custom offline page for joomla (that's under maintenance). I would like to put a link that directs the user to the front-end admin login page, how can I do this?     
asked by 11.05.2018 / 23:49
2
answers

Display code on page

What code use to display any code on the page? That is, how do I display PHP or any other code on the page so that the browser reads it as text and does not interpret it as code?     
asked by 06.04.2018 / 16:30
1
answer

how to take the value of each input and play each one in a variable

Good afternoon guys! I'm doing this to get the value of each input that is within the variable $ html I have tried other methods to decrease this amount of foreach for each input, but without success. How do I use just a foreach or somethi...
asked by 02.03.2018 / 19:07
1
answer

Download button without showing your way

Hello, I have a main mysite.com html site that can be found by search engine robots and I've done myite.com/download.html with these parameters <meta name="robots" content="noindex, nofollow, nosnippet, noodp, noarchive, noimageindex"&g...
asked by 02.03.2018 / 20:37
1
answer

Wordpress: multiple queries

I'm doing queries to fetch posts according to different parameters of custom fields, but I'd like the final result of the 3 queries to be displayed together. function query() { foreach ($values1 as $value1) { $arrays[0][] =...
asked by 06.09.2018 / 18:12
1
answer

Avoid Duplication in the PHP + MySQLi Registry

Good evening! How do I prevent registration with the same information? Currently my "processa.php" is this way, and I wanted to include the function mentioned above ... <?php session_start(); include_once ("conexao.php"); $nome = fi...
asked by 03.09.2018 / 00:21
1
answer

How to submit data from a JS array by PHP?

I have a form that has a table that will be generated as the user adds elements to it through the "Add" button. (One client can have multiple addresses) How many data will be generated, I will need an array. The only way I can do this is by u...
asked by 29.08.2018 / 19:32
1
answer

Explanation about PHP code

Good evening, anyone with more affinity in PHP could explain the following code? PS: I'm starting my studies so I apologize if the doubt is frivolous. <?php if (isset($_GET['pagina'])) { $do = ($_GET['pagina']);...
asked by 13.01.2018 / 02:08
1
answer

Access denied access controller with CodeIgniter

I made an application with code igniter and implemented a login screen. When logged in, the user is directed to the dashboard screen. When you click on any link on this screen, the message "Forbidden access" is displayed: Imadeachecktounders...
asked by 11.01.2018 / 19:25
1
answer

Treatment "escape" in query (escape of characters)

Scenario: Insert Query: public function forward($descricao) { ($descricao == '') ? $descricao = 'NULL' : $descricao = "'{$descricao}'" ; $sql_enc = " INSERT INTO rg_encaminhamentos ('descricao') VALUES ($descricao) "; } I'm inse...
asked by 18.01.2018 / 13:02