Jan 13, 2001, 4:22 PM
Post #1 of 1
Okay, for my next question....
I'm Stuck, Love this Forum
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
##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