a really frustrating one for me today .. Keep getting
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given
HOWEVER , there is data in the table I am querying.
I have even tried doing a basic SELECT * to see if it will display ANYTHING at all from the table but it simply gives me the above error.
my very simple query is
$test = mysqli_query($con, "SELECT * FROM `workshop-items` WHERE `wsiid` = '1'");
$testr = mysqli_fetch_assoc($test);
echo $testr['code'];
In the table there are 7 columns each with a value however no matter what it just gives me this flipping error.
Please help guys I'm really pulling hair out now.
The $con values are correct because I use it for the login and other queries.