View Single Post
Old 10-02-2021, 11:02 PM  
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Quote:
Warning: mysqli_query() expects at least 2 parameters, 1 given
It is saying right there, solve this and the mysqli_fetch_array one will go away too, assuming that the query will not fail. Here is a hint to put you on the right track:

You are using mysqli_query correctly in other part of your script.

Quote:
$con=mysqli_connect("localhost","databse","passwor d","username");
$result = mysqli_query($con,"SELECT * FROM Recipe WHERE Ingredients REGEXP 'salt';");
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote