Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
having problem in php
Have this error, Notice: Undefined variable: conn.... and Warning: mysqli_query() expects parameter 1 to be mysqli, null given ..... don't know what's wrong. help!
3 Respostas
+ 3
Did you forget to include the connection file?
+ 2
it seems that you didnāt well defined var $conn (with the database configuration) thatās must be the first param of musqli_connect function...
ex:
$conn = mysqli_connect(ālocalhostā, āadminā, ā12345ā, āmydatabaseā);
msqli_query($conn, āSELECT * FROM tableā);
+ 1
yes i just forgot to include the connection. thanks