PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

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