Answer the question
In order to leave comments, you need to log in
Why is it impossible to connect to the database through the function?
I can't connect to the database through a function.
Here is that function:
function connect()
{
$dbc = mysqli_connect('localhost','root','','lesson');
return $dbc;
}
$dbc = mysqli_connect('localhost','root','','lesson');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question