I have this simple query:
var select = "select * from mainTable where username = '" + username + "'"
where I am then checking this:
for (var i = 0; i < rows.length; i++) {
if (rows[i]["CHILDTABLEID"] != undefined) {
//here I need to check if childtable2id has been created within that table yet
}
}
I need to check if childtable2id has been created within that table yet. How is this possible. I was hoping it wouldn't require a modification to my query, and I could just do something along the lines of:
if (rows[I]["CHILDTABLE2ID"]) //check if its been created????
if you get where im trying to go with this.
thanks for the help