-1
Where am I missing when updating this code to php 7.4.
File "controls/connected.php"
<?php
// DADOS DA HOSPEDAGEM
$endereco = "localhost";
$usuario = "root";
$senha = "";
$banco = "teste";
// CONEXÃO DASHBOARD
$link = mysqli_connect($endereco, $usuario, $senha);
mysql_select_db($banco, $link);
?>
"Dashboard.php"
<?php
include("controles/conexao.php");
//BUSCAR USUARIO
$buscarusuario = mysqli_query("SELECT * FROM usuario WHERE estado_usuario = 0 AND vendedor = 1", $link);
//PEGAR QUANTIDADE
$num_rows = mysqli_num_rows($buscarusuario);
//MOSTRAR QUANTIDADE
echo "$num_rows\n";
?>
The function mysql_select_db() has been removed since version 7.0.0
– user60252
What function has the sub-institution?
– DINHO NUNES LC
https://www.php.net/manual/en/mysqli.select-db.php
– user60252
https://www.w3schools.com/php/func_mysqli_select_db.asp
– user60252
https://www.w3schools.com/pHp/func_mysqli_num_rows.asp
– user60252
How could I leave this working code?
– DINHO NUNES LC
Fia the quick response right here, have to review
– user60252
see also https://i.stack.Imgur.com/Ogbxr.png
– user60252
for a quick view of https://answall.com/tour
– user60252