I have a problem when I try to insert from a form
<form method="post" action="../../controller/inserirContato.php">
<label for="name" class="nameLabel">Meu nome é: </label>
<input id...
To make bank operations better and to use (or which to use):
Data Manipulation
Query-builder
To work with data manipulation?
And how would I do it to do bank operations with him
for example:
#inserção no banco
$sql = INSERT INTO t...
I made a class to connect to the database using PDO and at the time I get the data from my table it gives this error.
This is the code:
require_once('../class/connection.class.php');
$db = conection::getInstancia();
$query = $db->query(...
I have a form that does a search via PDO, but when I run it, it does not return anything to me.
$PDO = db_connect();
$busca = $_POST['usuario'];
$vbusca = "%".$busca."%";
$sql = 'SELECT nome, tipo, cor FROM livro AS t WHERE ';
var_dump($sql...
On a server with Debian 9, I upgraded PHP from version 7.2.13 to version 7.3.0, but now the PDO does not work anymore.
Fatal error: Uncaught Error: Class 'PDO' not found.
Libs are already installed:
root@/# apt install php7.3-pdo
Reading...
I'm having a problem updating if I remove ! from if (!empty($data['slug'])) the code just does not work, and if I leave ! it simply says that there is its own value without changing any detail, could someone please help me....
In that upload code. The class uploads an audio. Everything works fine, but, I do not know how to do that "identifies" and "id_user" can manage the upload and restrict to only when those two are different or is "empty", the upload is done. There...
Hello, I'm trying to pass the data from a table pulled from the database to the fields that belong to update on the same page as the one that I registered, but I can only pass the data from the textbox to the page in php.
Below the logic I was...
For ordinary users I have 10 queries (nav-bar default) and for registered users I have 30 queries (nav-bar default + nav-bar related to the user page), just to print on the screen the link to querystrings , a guy told me that I should escape the...
Hello, I have a small problem, the table gets one more column, I looked for the error and read the code several times and nothing to solve
If anyone can help, thank you
<table>
<tr>
<?
$table = 'Products';
$col...