No such thing as a small change | |
PerlMonks |
Re: Need help writing a script that interacts with a MySQL DB!by tinita (Parson) |
on Sep 30, 2012 at 10:54 UTC ( [id://996495]=note: print w/replies, xml ) | Need Help?? |
my $query = "SELECT * FROM People where Name = '$console'";Please learn to use placeholders as early as possible and get used to it. they make your database statements more secure and the code is in most cases cleaner to read. You don't need to care about quoting the value. see also http://bobby-tables.com/
In Section
Seekers of Perl Wisdom
|
|