Okay, so, we did debug the ID number. (make sure there are no extra spaces between the number and the ***'s. That would cause a mismatch against the database.)
Next, we check to see if it is pulling the correct values from the database query. So, remove the die line again.
And, do part two:
What that will do is show the actual customerID that is being selected. Then, you will see if there is some odd thing being passed back to the page. If the customer ID used is displayed as you expected (minus the stars which I use to see extra spaces, no spaces allowed in database!), then next you would have to debug the query. To do that, AFTER these lines: $account_list = ""; $sql = mysql_query("SELECT * FROM transactions WHERE customerID='" . $_SESSION['customerID'] . "'"); $accountCount = mysql_num_rows($sql); Put this line: $die($accountCount); This will show the count you are getting from the query. If zero, than you have no sample purchases in the account info for that customer ID...If it is zero, then this is the section of error. If it is 1 then, it is the next part... Let me know...