Both tables do contain the customer_id record, and they coincide. Customer_id number 566 is in table 1 (which is the customers table) and also in table 2 (which is the transactions table)
The problem is not joining the 2 records. The problem is how to the query.
I found out what I did wrong:
I forgot to specify the dateCreated field from table2. Without that, the query couldn't work.
below is the correct query:
SELECT c.*, t.* FROM customers c, transactions t WHERE c.customer_id ='$id' AND c.customer_id = t.customer_id ORDER BY t.dateCreated