I have these errors:
Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\Websites\members\core\user.inc.php on line 31
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\Websites\members\core\user.inc.php on line 33
this is the user.inc.php file.
http://pastebin.com/v8r0Hsxi
Not sure what is wrong.
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
i suppose you are using procedural style of code
if you have something like $link = mysqli_connect............
then do this
mysqli_query($query,$link);//what ever query you have
if your doing OO i don't think you are doing this
then you have a line like this
$link = new mysqli(....);
then do this
$link->query($query);
they recommend you don't mix the two styles