I’m new to framework 7
Please I get example on how to use database in framework 7
Just like in any web project
But I did something below and the url doesn’t open like detail.html?I’d=1&itemname
But only populate the data
Var url=“http://192.168.56.1/try/json.php”;
$$.getJSON(url,function(result){
console.log(result);
$$.each(result, function(i, field){
var id=field.id;
var itemname=field.itemname;
var date=field.date;
var price=field.price;
var category=field.category;
var currency=field.currency;
$$("#show").append(" ");
“+itemname+” “+category+”
});
Then dive show in index.html