Hi,
Thank you for your enquiry.
This should be possible. Please try adding the following code to a script object on the page:
Code:
var db = new Database("FILEDSN=mydb.dsn");
var records = null;
sk_hand_cardname = new Array();
var sql = "SELECT * FROM firstedition WHERE cardname = 11202;";
records = db.ExecuteSQL(sql);
var num_records = records.GetNumberOfRecords();
for (num=0; num<num_records; num++) {
sk_hand_cardname[num] = records.cardname;
records.NextRecord();
}
You may need to change the filename in the first line to match your DSN.
Now simply add a series of text objects to the page and insert the various indexes of the array (for example, sk_hand_cardname[0], sk_hand_cardname[1] and so forth).
Now preview the publication and the text objects should display the required records.
Of course, you may not want the records to appear immediately, but only when a button has been clicked. If so, simply edit the script object to read the folllowing:
Code:
function GetRecords() {
var db = new Database("FILEDSN=mydb.dsn");
var records = null;
sk_hand_cardname = new Array();
var sql = "SELECT * FROM firstedition WHERE cardname = 11202;";
records = db.ExecuteSQL(sql);
var num_records = records.GetNumberOfRecords();
for (num=0; num<num_records; num++) {
sk_hand_cardname[num] = records.cardname;
records.NextRecord();
}
}
You can now add a script action to a button to call this GetRecords() function at the required time.
I hope this helps. Please do not hesitate to contact me if you have any further queries.
Kind regards,[/code]