|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: single quotes and perl
Date: Jan 12 2001 6:05PM
Tanja Davidson writes:
> okay, now I know what was different, in case anyone is interested...
>
> here's the code I was using for the search in sql:
>
> $sql="select blah, blah, where name like '" . $lname . "' AND.....
>
> when I tried it this time I had changed it to this:
>
> $sql ="select blah, blah, where name like '$lname' and ....
>
> ie. the lesson learned is NOT to break up my sql string by
> concatenating.
Been there, done that...
:-)
Michael
--
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|