mysqli_query() expects at least 2 parameters, 1 given in? [duplicate]

The error message is quite clear. mysqli_query() requires two parameters. You only provide one. When you see an error message like this the first thing you need to do is go to the manual. If you did you would see you must provide your MySQLi link as the first parameter:

$search_query=mysqli_query($con, $search_sql);

Leave a Comment