Questions tagged as 'php'

2
answers

Sort query in an interleaved way

I'm trying to list a particular product category. example. $consulta = $pdo->prepare("SELECT * FROM msg where tema = :tema;"); $s = 'mensagens-de-aniversario'; $consulta->bindParam(":tema", $s, PDO::PARAM_STR); $consulta->execute(); w...
asked by 14.06.2015 / 20:47
1
answer

How to enable PHP Sessions in Wordpress?

I'm developing my website using the Wordpress platform. I needed a lot, but very much, to enable PHP Sessions inside the platform, so logged-in users can stay logged in to the subdomains I'm creating. Any suggestions? I already tried to en...
asked by 15.01.2016 / 18:44
1
answer

How to create a page that has different information for each type of user? [closed]

It's my first question here in Stack overflow. Well, I would like to know how I would structure a page in php to display different information for different users, since I do not want to have more than one page for each type of user. For exam...
asked by 27.11.2015 / 18:44
1
answer

Refresh page information without refreesh

I have already searched and did not find exactly what I want. My problem is this: I have a comment page that I wanted it to be updated with every change in the bank (this is for everyone who is currently logged in). I found some methods on...
asked by 22.12.2015 / 01:59
1
answer

Manage variables with PHP session

I need to get the value of an input text to store it and use it on another page that pops up automatically when the form's Submit button is pressed. He can do this, but what is happening is that when I press the button the first time it does...
asked by 02.12.2015 / 13:27
2
answers

Passing parameters to Modal in jQuery

I have the following button: echo '<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-cliente='.$r->idCliente.' data-datainicial='.$_GET['data_inicial'].' data-datafinal='.$_GET['data_final'].' data-target="#myMod...
asked by 27.11.2015 / 02:37
1
answer

SQL injection with PHP + SQLServer [duplicate]

How can I prevent SQL injection coming from an input via POST using PHP + SQLServer. (Using Microsoft SQL Server => mmsql) I am doing the data abstraction of a DB that runs MYSQLI and in this case it is done this way. $Email= mysqli_real...
asked by 15.01.2016 / 20:49
1
answer

Is it safe to use TimThumb?

I'm making a website and I started using the TimThumb.php library to resize the images to the exact size I want. However I came to two doubts Is it safe to use? hear that past versions presented vulnerability; Doing the usage will imply...
asked by 20.12.2015 / 22:41
1
answer

I can not display the value of SQL

I'm trying to start a MySQL database connection and it works, but when I request that PHP display what it has there nothing appears. It's as if the connection to the BD had failed. <?php // definições de host, database, usuário e senha $s...
asked by 25.12.2014 / 21:44
1
answer

PHP, AJAX and jQuery

Hello. I have the following hierarchy of folders: Parent folder, with the following: file submit.php, with the following code: <?php ini_set('display_errors',1); ini_set('display_startup_erros',1); error_reporting(E_ALL); include("libs...
asked by 11.12.2014 / 23:39