MySQL Forums
Forum List  »  Perl

Re: What wrong with my DBI?
Posted by: Randy Clamons
Date: August 07, 2007 04:43PM

Strings must be quoted.

$myquery = "SELECT * FROM $tablename WHERE ligand_name = '$l_name'";
or
$myquery = "SELECT * FROM $tablename WHERE ligand_name = /"$l_name/"";

Options: ReplyQuote


Subject
Written By
Posted
August 07, 2007 03:55PM
Re: What wrong with my DBI?
August 07, 2007 04:43PM
August 08, 2007 08:16AM
August 08, 2007 12:00PM
August 08, 2007 08:32AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.