Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

I need some help with where in sqlite

$
0
0

@maxworld77 wrote:

const data = JSON.parse(localStorage.getItem(‘userData’));
this.userDetails = data.userData;
this.userPostData = this.userDetails;
this.gov.id=this.userPostData.gov_id;

this.databaseprovider.getAllpro(this.gov).then(data => {
this.projactsdb = data;

getAllpro(id: any) {
let ids = [id]
return this.database.executeSql(“SELECT * FROM projects where gov_id in (?)”, [ids]).then((data) => {
let projects = ;
if (data.rows.length > 0) {
for (var i = 0; i < data.rows.length; i++) {
projects.push({ id_p: data.rows.item(i).id_p, pro_name: data.rows.item(i).pro_name, up_date: data.rows.item(i).up_date });
}
}
return projects;
}, err => {
console.log('Error: ', err);
return ;
});
}

whats wrong plz

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>