I have a database Registration with two tables joao and maria and old columns and I'm trying to make a query in php just do not know if I'm doing it right because I've been using the database for some time I have the following code:
<?php
$host = 'localhost';
$user = 'devel';
$password = '********';
$database = 'Cadastro';
$connect = mysqli_connect($host, $user, $password, $database) or die(mysqli_error());
$consult = $_GET['q'];
if(isset($_GET['q'])){
$sql = mysql_query("SELECT * FROM 'Cadastro' WHERE 'nome' LIKE $consult");
echo $sql;
}
else {
echo 'nao foi encontrado nada';
}
?>
I'm not getting any feedback
There is already data in the columns but nothing is returning