Questions tagged as 'prepared-statement'

1
answer

How to enter a keyword in a search in the bank already done

For example, I did a search of all the user data in the bank to echo echoes in different columns through the site: $stmt = $conexao->prepare("SELECT * FROM esc_usuarios WHERE usu_codigo = ?"); $stmt->bind_param("s", $usu_codigo);...
asked by 23.10.2018 / 20:24
0
answers

Problems with query in the bank using PreparedStatement

I have a problem with using preparedStatement. I have a very large SQL query (very large String), so it gives syntax error. However, when I remove some parts of the code, the error is different by increasing exactly how much I removed from the s...
asked by 02.10.2018 / 21:33
1
answer

Problem using parameter in a PreparedStatement

I would like to know if there is any problem in using the "parameter" variable after the "AND", because when I tested putting the column name directly in SQL worked and when I try to pass the column name with the parameter does not return anythi...
asked by 02.08.2018 / 06:03
1
answer

PDO Help (PREPARE)

Hello. I'm trying to make a CRUD using PHP OO. But when I run I get error in prepare of the PDO class. I have only for the moment the registration code in the bank and the connection code to the bank: Banco.php <?php class Banco{...
asked by 28.01.2017 / 21:25
1
answer

Help with MySQL connection

I am creating a CRUD system for practices, and my code is giving error in my prepare() . Index.php <?php require_once 'core/init.php'; // Abre a conexao com o banco de dados $pdo = db_connect(); // SQL para contar o total de reg...
asked by 27.12.2016 / 22:53