I have 3 Tables, which are:
School: id , id_escola and nome_escola ;
Teacher: id , id_escola and nome_professor ;
Students: id , id_escola , sala_aula and numero_alunos ;...
I am having difficulties with a SQL query in PHP, when I make a query I get the following error:
Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result, boolean given in C: \ xampp \ htdocs \ trabalhowebGustavo \ user \ B...
I'm following a toturial, everything looks the same. My problem is that I can not connect to the table.
connect.php:
<?php
$db = new mysqli('127.0.0.1', 'user', 'pass', 'app');
if ($db -> connect_errno) {
die ('Sorry...
I'm a beginner in php and I'm developing a small system for my company that already serves as a study, because I really like this area, the question is simple, I have the following code:
<?php
include('conn/conexao.php');
$edt = $_GET['edit...
I have a select that brings a series of records. Here, in these records I need to apply an up and that in my head, the best way would be to use a checkbox field, so that when the user marks the checkbox and then clicks the "submit" button, only...
I made an OO code in PHP. I used MySQLi for the database and WAMPSERVER as the server, where I inserted data into the "category" table. The bank collation is "latin2_general_ci".
There were no errors, but in the browser the data entered did not...
I have the code:
<?php
$clientes = implode(', ', $clientes);
$busca = $mysqli->prepare("SELECT nome FROM clientes WHERE id IN (?)");
$busca->bind_param("s", $clientes);
$busca->execute();
$busca->bind_result($nome);...
I want to insert data into my database I'm using mysqli, I need to know how I would indicate an array inside a variable, here and my code I want to know if this is the correct way to do it
require 'config.php'
require 'connection.php'
$nomear...
I'm having trouble rightly mounting a <select> within PHP, with data returned by mysqli .
I tried this way:
<?php
$con = new mysqli("localhost", "root", "senha","bancodedados" ) or die (mysql_error());
$query = $...
I created a registration system, but when I click the register button the message "Could not insert record:" ... Someone can identify this error, because I have not been able to identify it yet. Follow my code below.
cadastro.php
<!DOC...