Can anyone tell me where the problem here is ???
Given a rather simple table phone
+----------+----------+------------+
|first |last |phone |
+----------+----------+------------+
|Joe |Blow |800-555-1212|
+----------+----------+------------+
In this rather simplistic example:
my $sth = $dbh->prepare("SELECT first,last,phone FROM $table WHERE
phone_book.last='Blow'");
works while the following does not;
my $sth = $dbh->prepare("SELECT first,last,phone FROM $table WHERE
phone_book.last=$FOO");
Where $FOO = 'Blow'; And the error message returned is as follows:
DBD::mysql::st execute failed: Unknown column 'Blow' in 'where clause'
at ./find-record line 23.
I'm sure that I am making a grievous error here but just can't see it.
Can anyone shed some light on this ???
Thanks in Advance
Bill
--
William R. Mattil | Fred Astaire wasn't so great.
wrmattil@stripped | Ginger had to do it all backwards
(972) 399-4106 | and... in high heels.