Saturday, 17 August 2013

Firebase, PHP & JavaScript implementation

Firebase, PHP & JavaScript implementation

My Firebase structure is as follows:
root
|
`-- dynamic push id
|
|`-- key1: value1
`-- key2: value2
I am using PHP to loop through an array and within the loop using
JavaScript to take snapshots of data from Firebase. I need to be able to
check if data exists, by referencing the dynamic push id for each set of
data. If data exists, display, if not query the data using PHP and push it
to Firebase then display. I'm wildly assuming that after pushing the new
data to Firebase, I need to store the snapshot name somehow to check
against the data later?
Maybe I'm making it harder than it should be. I'm still new to all this.
Thanks for your time.

No comments:

Post a Comment