barrycarlyon has asked for the wisdom of the Perl Monks concerning the following question:
Im trying to fetch a single result from a table. First I search the table for the right row, but i want to fetch a single column so then I can search another database with the returned value
table;
id field content date
I search the field, but I want to put the content in a refernece then search a different database with that response
somewhat like
--CODE--
--END CODE--# search first db my $data => LSRfm::Database::Data->search(field => 'currentpoll'); # returns an array but I only want the third column of the array which + is called content my @results = LSRfm::Database::Poll_Results->search(poll_title => (--Search using content--));
--Search using content-- = Search using $data but only using the content field in that array.
I think that explains it?!
BarryCarlyon
barry@barrycarlyon.co.uk
www.lsrfm.com
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with fetching a single result from a table
by davidrw (Prior) on Mar 24, 2006 at 14:55 UTC | |
|