Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Mysql module

by Cabrion (Friar)
on Mar 07, 2003 at 01:58 UTC ( [id://241055]=note: print w/replies, xml ) Need Help??


in reply to Mysql module

I'm not a Mysql buff, so I don't know about the syntax of Mysql's LEFT(). Typically LEFT() functions take another argument: how many characters to extract from the left side.

However the " leads me to belive that there is a double quote in $var. Try printing $query to see what's in it.

If that's the case, do something like this before the my $query... thing.

$var = $dbh->quote($var);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://241055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found