0
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 RĂ©ponses
+ 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