From: Vivek Khera Date: March 25 1999 2:41pm Subject: Re: Extracting a given row using Perl API List-Archive: http://lists.mysql.com/mysql/954 Message-Id: <14074.19213.258032.383625@kci.kciLink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>>>> "WRM" == William R Mattil writes: WRM> works while the following does not; WRM> my $sth = $dbh->prepare("SELECT first,last,phone FROM $table WHERE WRM> phone_book.last=$FOO"); WRM> Where $FOO = 'Blow'; And the error message returned is as follows: Try this: print "SELECT first,last,phone FROM $table WHERE phone_book.last=$FOO"; and see if you think that's a valid SQL statement to do what you want. I don't think it will be. v. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@stripped Rockville, MD +1-301-545-6996 PGP & MIME spoken here http://www.kciLink.com/home/khera/