You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pgQuery($conn,"CREATE TABLE checkItem( pk serial, data text, item integer, depend integer, parent text REFERENCES checkMaster(pk))");
//Create some sample data to play with
if(pgQuery($conn,"INSERT INTO checkMaster (description, owner, pk, editPass) VALUES ($1,$2,$3,$4) RETURNING pk",['This is a sample checklist','0','DfsHQzYUvamIWAWr8Xaa','aiejflERFdifjerEDFEW245'])) {
pgQuery($conn,"INSERT INTO checkItem (data, parent, depend, item) VALUES ($1, $2, $3, $4)",['This is the first item.','DfsHQzYUvamIWAWr8Xaa',null,1]);
pgQuery($conn,"INSERT INTO checkItem (data, parent, depend, item) VALUES ($1, $2, $3, $4)",['If you skipped the first item, you won\'t see this until you complete it.','DfsHQzYUvamIWAWr8Xaa',1,2]);
pgQuery($conn,"INSERT INTO checkItem (data, parent, depend, item) VALUES ($1, $2, $3, $4)",['This is the third item.','DfsHQzYUvamIWAWr8Xaa',null,3]);