Hi Shayne, What do you mean it "inserts"? The code you showed only does a SELECT. Are you saying the ids in the database are correct but that mysql_fetch_assoc($records) seems to return the wrong thing?