# Quoting issue in Perl/MySQL program

**URL:** <https://forum.kirupa.com/t/quoting-issue-in-perl-mysql-program/278660>\
**Category:** programming\
**Created:** [January 3, 2009, 7:22am UTC](https://forum.kirupa.com/t/quoting-issue-in-perl-mysql-program/278660 "2009-01-03T07:22:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamhere](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Post date:** [January 3, 2009, 7:22am UTC](https://forum.kirupa.com/t/quoting-issue-in-perl-mysql-program/278660/1 "2009-01-03T07:22:20Z")

</div>

Hello,  
I have this line in my program (a CGI script):

$sth=$dbh-\>prepare (qq{SELECT firstname,lastname,type FROM persons WHERE firstname LIKE “$param[0]” AND lastname LIKE “$param[1]” and type LIKE “$param[2]”} );

$sth-\>execute ();

My question is: do the quotes before the $param[0] need to be removed?
