0
Someone help me with these 2 mistakes?
Warning: mysqli_select_db() expects Exactly 2 Parameters, 1 Given in C: xampp htdocs Flexor config.php on line 11
Fatal error: Uncaught Error: Call to Undefined Function mysql_error() in C: xampp htdocs Flexor config.php:11 Stack trace: #0 C: xampp htdocs Flexor logar.php(2): include() #1 {main} thrown in C: xampp htdocs Flexor config.php on line 11
<?php
$host = "localhost"; //Servidor do mysql
$user = "root"; //Usuario do banco de dados
$senha = ""; //senha do banco de dados
$db = "jpec"; //banco de dados
$nome_site = "nome"; //Nome do site
$email = "[email protected]"; //E-mail do administrador
$site = "http://www.jpecinformatica.com"; //Seu site n se esuqece de bota o http://
mysqli_connect($host, $user, $senha) or die (mysql_error());
mysqli_select_db($db) or die (mysql_error());
?>