db.query("select url,city from tbl_med_local_link");
return data.map(x=>(x.url,x.city))
}
fetch_link()
.then((data)=>{
console.log(data);
})
i m getting array of only city
why i m not able to fetch url ?
Have you checked the database, any records come up for that query?
return data.map(x=>(x.url,x.city)) Not sure what you're meaning to do here but this isn't valid
(a, b) returns b
Обсуждают сегодня