Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in ....
Hello. I'm getting the above error. i have done a few JOINS, but not enough to debug problems / gain experience with them.
this code works fine.
(SELECT ClientNumber FROM ClientCodes where (nextCheck<'$timer') LIMIT $start,5);
or
(SELECT * FROM ClientCodes where (nextCheck<'$timer') LIMIT $start,5);
basically, i want to 'join' 2 tables - & import the 'name' column from another table - based on the client number.
the SQL code i have so far is this, but i'm getting various errors. (this is my 5th/6th version of this code, but it still gets errors...)
SELECT t1.*, t2.Name
FROM `ClientCodes` AS t1
JOIN Clientlist AS t2 ON ClientCodes.ClientNumber = Clientlist.Clientnumber
WHERE Clientlist.clientnumber = (SELECT ClientNumber FROM ClientCodes
where (nextCheck<'$timer') LIMIT $start,5);";
(the Name column is in the Clientlist table.)