So my concern here is that I'm making a Family Finance App and I have structured by Firebase Realtime database like such /Users/UID/Family/FamilyMemberName
now that is the path after that I want the data inside "FamilyMemberName" to be appended to a HTML Bootstrap Table however I'm not able to do so with the following code.
firebase
.database()
.ref("/Users/" + uid + "/Family/")
.on("child_added", (snap) => {
var FamilyMemberName = snap.child("MemberName").val();
var FamilyMemberDOB = snap.child("MemberDOB").val();
var FamilyMemberEmail = snap.child("MemberEmail").val();
var FamilyMemberContact = snap.child("MemberContact").val();
$("#familyDetails").append(
"<tr><td>" +
FamilyMemberName +
"</td><td>" +
FamilyMemberDOB +
"</td><td>" +
FamilyMemberEmail +
"</td><td>" +
FamilyMemberContact +
"</td></tr>"
);
});
So with this structure and code is there something I am doing incorrectly or is it totally wrong. It would be great if someone could help me out.