Hello Esteemed Colleagues,
What I want to do is,
Retrieve data from a database.
put this into @currentpoll
Currentpoll returns the following array
id | field | content | date |
11 | currentpoll | Test Poll | 2006-03-23 |
There is other data in this table, however i retrieve doing the following search
my @currentpoll = LSRfm::Database::Data->search(field => 'currentpoll'
+);
Hence there is only one row.
Now I want to put the content column into a "memory box" called @search, so in this case @seacrh would be Test Poll,
now i want to take @search and use its value to search a different database in a similar fashion to;
my @pollresults = LSRfm::Database::PollResults->search(field => @searc
+h);
Hopefully that should have cleared up the questions from How to access an Array Element
The idea with this being I can change the currentpoll Content value, without having to alter the perl script.
Yours
Barry Carlyon
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|