Hi,
Is the table in the same DB as your GLinks one? If so, you could try:
my $val = $DB->table('Links')->do_query(qq|SELECT price FROM prices WHERE name = "$_[0]"|)->fetchrow;
return $val;
}
..call with:
<%get_value_prices($cardname1)%>
<%endif%>
Untested, but that should work.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Is the table in the same DB as your GLinks one? If so, you could try:
Code:
sub { my $val = $DB->table('Links')->do_query(qq|SELECT price FROM prices WHERE name = "$_[0]"|)->fetchrow;
return $val;
}
..call with:
Code:
<%if cardname1%> <%get_value_prices($cardname1)%>
<%endif%>
Untested, but that should work.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!