CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
I'm Stuck, Love this Forum

 



SirAnvil
Deleted

Jan 13, 2001, 4:22 PM

Post #1 of 1 (336 views)
I'm Stuck, Love this Forum Can't Post

Okay, for my next question....

I'm pulling data into a hash. The data is in a MySQL database and I've prepared a statement ('select * from table')

What I want to do know is check 2 variables $first and $last to see if they both exist simultaniously (did I spell that right?) for example

$first=$q->escapeHTML( $q->param('first'));
$last=$q->escapeHTML( $q->param('last'));

##as you can see I've escaped the html so some doofus won't take advantage of it.

So the variables are defined by the form of an HTML

Now the query listed above is pulled into a HASH using $sth->fetchrow_hashref; I call the hash STUFF

Stuff has in each row the following
first last moredata moredata moredata

I want to compare $first with field first and $last with field last. If they match it goes HERE and if not it goest THERE

am I making any sence? I've lost myself already

SirAnvil
www.christiangamers.org

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives