in reply to Problems with my DB lookup script
$EVENT->{'slots'}->{'NTSD_VALUES'} = lookup_NTSD_val('[Cover],[UseSubType],[Building],[Network],[Environment],[AssetNo],[Primary_IP_Address],[ServiceID],[OS],[Team]', '[ServerComp]', "left([ServerName], $L) = '$hostN'");
See the docs on string interpolation. As a side note, for future code you may want to look into DBI and using placeholders to simplify your life and to return more useful diagnostics when you query your database.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with my DB lookup script
by Mych (Initiate) on Apr 27, 2009 at 15:23 UTC |