で
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;"]
感謝。 linkFromTest.htmlで
$Tag->tmp('outofstock_prod'); # remove this when done
$Scratch->{outofstock_prod} = $ref->{outofstock_prod};
次に、::test.plで
[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 '[scratch outofstock_prod]'
LIMIT 0,4;"]
(そうでない場合は、私は、またはそのoutofstock_prod
フィールドに何が含まれているか$ref
が何であるかわかりません。文字列の場合は、文字列を作成してから貼り付けてください。)