Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 ?
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 lurking in the Monastery: (16)
As of 2014-10-30 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls