LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 715 users online 211466 members 1503 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Forever Angel
Music: Country, classic rock
Mood: Wishful
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
2 online / 99 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Perl / SQL
in_list
Replies: 0Last Post Sep. 13, 2008 8:43pm by medjai
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( medjai )



Patron
Support Leader
Reply
I need to know this for security reasons.

In Perl or SQL, if I have a TABLE, and that table has, say, six things.

USERNAME
PASSWORD
EMAIL
DAYSACTIVE
POINTS
SIGNATURE

Now. Let's assume I only know what one of these are. USERNAME.

Can I through any of the standard libraries for these languages use a command like I can in c++ that effectively lets me tell the program to LIST for me, all the names that I don't know.

For instance (and this is not exercising proper syntax at all I know).

IF NOT IN_LIST "USERNAME"
THEN PRINT_ALL
ELSE RETURN 1

OR ANYTHING OF THE SORT?

I know that this is possible in some way, but I'd like to see exactly how it's done if anyone's familiar.

-------
O` tru apothecary!
Thy drugs are quick.
Thus with a kiss I die.


8:43 pm on Sep. 13, 2008 | Joined: Nov. 2003 | Days Active: 1,508
Join to learn more about medjai California, United States | Straight Male | Posts: 16,227 | Points: 37,657
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic