Sorry for all the questions but I've another one..
I can see that the insert is updating the DB so happy days but the fetch is not giving me anything.. What exactly does fetch return?
Should it be something like:
I am trying to read it as follows in my showRecords function:
Am I getting this all wrong?
I can see that the insert is updating the DB so happy days but the fetch is not giving me anything.. What exactly does fetch return?
Should it be something like:
Code:
[
{"id": 1, "uri": "http://humaxportal.com", "name": "Humax Portal", "img": "img/humax.png"},
{"id": 2, "uri": "http://iplayer.co.uk", "name": "BBC iPlayer", "img": "img/iplayer.png"},
{"id": 3, "uri": "http://twitter.com", "name": "Twitter", "img": "img/twitter.png"}
];
I am trying to read it as follows in my showRecords function:
Code:
$.each(data, function(i, item) {
var id = data[i].id;
var uri = data[i].uri;
var name = data[i].name;
var img = data[i].img;
}
Am I getting this all wrong?