Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: MySQL Blob / DBI quote ?

by cchampion (Curate)
on Dec 20, 2003 at 23:04 UTC ( #316107=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: MySQL Blob / DBI quote ?
in thread MySQL Blob / DBI quote ?

Now, previously when the column type was "varchar(255) not null" , this insert code worked fine and all memos were added successfully.

I don't think so. It could not possily work with any value of $memo. For example, you are preparing a query with one placeholder and then you are executing without parameters. And your placeholder is quoted, so it could not work.

Further advice: use strict.


Comment on Re: Re: Re: MySQL Blob / DBI quote ?
Replies are listed 'Best First'.
Re: Re: Re: Re: MySQL Blob / DBI quote ?
by perleager (Pilgrim) on Dec 21, 2003 at 06:14 UTC
    What do you mean by placeholders? The insert seemed to work fine for me and when I did a little script to view the db, $memo field was inserted fine and printed out fine, with the exception of cutting off 75% of the memo...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (19)
As of 2015-07-29 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls