S
sam
Hi,
I m wondering how to fetch a dataset and hold it in the memory for used
by other webpages. Having everything written in one single page is much
easier, but it will look groove and not user friendly.
I will use MySQL as database.
For example, if I fetch records from the database with the following
perl codes:
$dataset->prepare(
q{SELECT name, ipaddr FROM hosts
WHERE (name = ? AND bldg = ? AND dept = ?)});
$dataset->execute($name,$bldg,$dept);
I would like the value of $dataset can be read from another webpage (a
result webpage). Assumed the perl code above is being executed by
pressing the Query button in a Query webpage.
Therefore the procedure may be:
Query webpage -> $dataset -> Result webpage
Thanks
Sam
I m wondering how to fetch a dataset and hold it in the memory for used
by other webpages. Having everything written in one single page is much
easier, but it will look groove and not user friendly.
I will use MySQL as database.
For example, if I fetch records from the database with the following
perl codes:
$dataset->prepare(
q{SELECT name, ipaddr FROM hosts
WHERE (name = ? AND bldg = ? AND dept = ?)});
$dataset->execute($name,$bldg,$dept);
I would like the value of $dataset can be read from another webpage (a
result webpage). Assumed the perl code above is being executed by
pressing the Query button in a Query webpage.
Therefore the procedure may be:
Query webpage -> $dataset -> Result webpage
Thanks
Sam