0
我有一個perl test.pl頁面發送電子郵件。電子郵件包含一個鏈接到html頁面linkfromTest.html。轉發/使用SQL查詢輸出值從Perl到HTML在交換
(交換是由交換髮展集團主頁提供Perl編寫的基於Web的應用程序框架:http://www.icdevgroup.org/i/dev)
但我不得不使用從test.pl「SQL查詢的結果$參考 - > linkofTest.html頁面需要{'outofstock_prod'}'才能運行sql查詢。
test.pl
$sql = "select OS.id,OS.name,OS.date,OS.customer_email,OS.product as outofstock_prod,OS.salesperson_email,OS.salesperson
from outofstock_sku as OS
where mail_sent='0'
order by OS.id";
$ref->{'outofstock_prod'}
......
......
print MAIL "More items potentially matched.\n\n";
print MAIL "Click here to view more items : http://qqq.qqqq.com/linkfromTest.html\n\n";
.....
linkfromTest.html
[query list=1 sql="select P.sku,P.manufacturer,P.category,P.scat,P.description,P.imgid
from
products AS P LEFT JOIN inventory AS I
ON (I.sku = P.sku AND I.status = 'A')
WHERE P.manufacturer LIKE '$ref->{'outofstock_prod'}''
LIMIT 0,4;"]
在此先感謝