I cannot figure out the results when the code reaches at line 41 (while loop) . ! it throws an error.
displaying records of two different tables, want the solution but with the JOIN statement.
Thanks, and kindly look into the Attachment file as it contains jpg file.

Try running the query itself in mysql to see if there are any errors. you can also validate if there are no results returned or if query fails


also, make sure the connection to the database is good.

It did not passed any field value from the sql query.
Problem with the query.
now for the query