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.
my $query = "SELECT * FROM People where Name = ?"; # later: $query1->execute($console);
In reply to Re: Need help writing a script that interacts with a MySQL DB!
by tinita
in thread Need help writing a script that interacts with a MySQL DB!
by MDTech.us_MAN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |